{
  "$schema": "https://playground.wordpress.net/blueprint-schema.json",
  "landingPage": "/wp-admin/admin.php?page=adminease",
  "preferredVersions": {
    "php": "8.2",
    "wp": "latest"
  },
  "phpExtensionBundles": [
    "kitchen-sink"
  ],
  "features": {
    "networking": true
  },
  "steps": [
    {
      "step": "login",
      "username": "admin",
      "password": "password"
    },
    {
      "step": "installPlugin",
      "pluginData": {
        "resource": "wordpress.org/plugins",
        "slug": "adminease"
      },
      "options": {
        "activate": true
      }
    },
    {
      "step": "setSiteOptions",
      "options": {
        "blogname": "AdminEase Demo Site"
      }
    },
    {
      "step": "runPHP",
      "code": "<?php\nrequire_once '/wordpress/wp-load.php';\n\n// A little content so the admin tools have something to act on.\nif ( ! get_page_by_title( 'Sample Draft Post', OBJECT, 'post' ) ) {\n    wp_insert_post( array(\n        'post_title'   => 'Sample Draft Post',\n        'post_content' => 'A draft so the bulk tools and revision limits have something to work with.',\n        'post_status'  => 'draft',\n    ) );\n}\nfor ( $i = 1; $i <= 3; $i++ ) {\n    $t = 'Demo Article ' . $i;\n    if ( get_page_by_title( $t, OBJECT, 'post' ) ) { continue; }\n    wp_insert_post( array(\n        'post_title'   => $t,\n        'post_content' => 'Demo content for trying AdminEase.',\n        'post_status'  => 'publish',\n    ) );\n}\n"
    }
  ]
}
