{
  "landingPage": "/wp-admin/admin.php?page=chart-builder",
  "preferredVersions": {
    "php": "8.2",
    "wp": "latest"
  },
  "features": {
    "networking": true
  },
  "steps": [
    {
      "step": "login",
      "username": "admin",
      "password": "admin123"
    },
    {
      "step": "installPlugin",
      "pluginData": {
        "resource": "wordpress.org/plugins",
        "slug": "chart-builder"
      }
    },
    {
      "step": "runPHP",
      "code": "<?php\nrequire_once '/wordpress/wp-load.php';\n\n$posts = get_posts(array(\n 'numberposts' => -1,\n 'post_type' => array('post', 'page'),\n 'post_status' => 'any'\n));\n\nforeach ($posts as $post) {\n wp_delete_post($post->ID, true);\n}"
    },
    {
      "step": "runPHP",
      "code": "<?php\nrequire_once '/wordpress/wp-load.php';\n\n$post_args = array(\n    'post_type'    => 'post',\n    'post_date'    => current_time('mysql'),\n    'post_status'  => 'publish',\n    'post_title'   => 'Chartify Example Post',\n    'post_content' => '<!-- wp:chart-builder/chart {\"shortcode\":\"[ays_chart id=1]\"} /-->'\n);\n\n$post_id = wp_insert_post($post_args);"
    },
    {
      "step": "setSiteOptions",
      "options": {
        "blogname": "Chartify Test Site",
        "blogdescription": "Automated Chartify Preview"
      }
    }
  ]
}