{
  "landingPage": "/wp-admin/post.php?post=4&action=edit",
  "steps": [
    {
      "step": "login",
      "username": "admin",
      "password": "password"
    },
    {
      "step": "setSiteOptions",
      "options": {
        "permalink_structure": "/%postname%/"
      }
    },
    {
      "step": "installPlugin",
      "pluginData": {
        "resource": "wordpress.org/plugins",
        "slug": "taxonomy-extender"
      },
      "options": {
        "activate": true
      }
    },
    {
      "step": "runPHP",
      "code": "<?php require_once 'wordpress/wp-load.php';\n$page_args = array(\n'post_type'    => 'page',\n'post_status'  => 'publish',\n'post_title'   => 'TAXONOMY EXTENDER GUIDE',\n'post_content' => '<h2>Step 1: Access the Categories and Tags</h2>\n<p>After activating the plugin, you will now see the <strong>Categories</strong> and <strong>Tags</strong> meta boxes on the right-hand side of the page editor.</p>\n<h2>Step 2: Create Categories and Tags</h2>\n<p>To test the plugin\\'s category and tag filter features:</p>\n<ol>\n<li>Navigate to <strong>Posts > Categories</strong> and create a few categories.</li>\n<li>Navigate to <strong>Posts > Tags</strong> and create a few tags.</li>\n</ol>\n<h2>Step 3: Add and Test the Widgets</h2>\n<ol>\n<li>Go to <strong>Appearance > Widgets</strong> in your WordPress admin dashboard.</li>\n<li>Add the native WordPress <strong>Categories Widget</strong> and <strong>Tag Cloud Widget</strong> to your sidebar or footer.</li>\n<li>Use the settings in the widgets to exclude specific categories and tags as needed.</li>\n</ol>',\n);\n$page_id = wp_insert_post( $page_args );"
    },
    {
      "step": "mkdir",
      "path": "wordpress/wp-content/mu-plugins"
    },
    {
      "step": "writeFile",
      "path": "wordpress/wp-content/mu-plugins/show-admin-notice-3.php",
      "data": "<?php\nadd_action(\n'admin_notices',\nfunction() {\n$dismissed = get_user_option( 'dismissed_expose_blueprint_notice-3', get_current_user_id() );\nif ( $dismissed ) {\nreturn;\n}\necho '<div class=\"notice notice-success is-dismissible\" id=\"custom-admin-notice-3\"><p>' . esc_html( 'Taxonomy Extender Plugin is installed Successfully. Now you can test all the features of this plugin without even installing on your actual site.' ) . '</p></div>';\n}\n);\nadd_action('wp_ajax_dismiss_custom-admin-notice-3', function() {\ncheck_ajax_referer('custom-admin-notice-3', 'nonce');\n$user_id = get_current_user_id();\nif ( $user_id ) {\nupdate_user_option($user_id, 'dismissed_expose_blueprint_notice-3', 1, false);\nwp_send_json_success();\n} else {\nwp_send_json_error('User not found');\n}\n} );\nadd_action('admin_footer', function() {\n?>\n<script type=\"text/javascript\">\njQuery(document).ready( function($) {\nvar ajaxurl = '<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>';\nvar nonce = '<?php echo esc_html( wp_create_nonce( 'custom-admin-notice-3' ) ); ?>';\n$( '#custom-admin-notice-3' ).on( 'click', '.notice-dismiss', function() {\n$.ajax({\nurl: ajaxurl,\ntype: 'POST',\ndata: {\naction: 'dismiss_custom-admin-notice-3',\nnonce: nonce\n}\n});\n});\n});\n</script>\n<?php\n} );"
    }
  ]
}