{
  "landingPage": "/wp-admin/plugins.php",
  "steps": [
    {
      "step": "installPlugin",
      "pluginData": {
        "resource": "wordpress.org/plugins",
        "slug": "changelogger"
      },
      "options": {
        "activate": true
      }
    },
    {
      "step": "installPlugin",
      "pluginData": {
        "resource": "git:directory",
        "url": "https://github.com/akirk/friends",
        "ref": "refs/pull/559/head",
        "refType": "refname"
      },
      "options": {
        "activate": true,
        "targetFolderName": "friends"
      },
      "progress": {
        "caption": "Installing plugin from akirk/friends PR #559"
      }
    },
    {
      "step": "mkdir",
      "path": "/wordpress/wp-content/mu-plugins"
    },
    {
      "step": "writeFile",
      "path": "/wordpress/wp-content/mu-plugins/show-admin-notice-2.php",
      "data": "<?php \nadd_action(\n'admin_notices',\nfunction() {\necho '<div class=\"notice notice-info\" id=\"custom-admin-notice-2\"><p>' . esc_html( 'Welcome to this demo of the Changelogger plugin' ) . '</p></div>';\n}\n);"
    },
    {
      "step": "writeFile",
      "path": "/wordpress/wp-content/mu-plugins/show-admin-notice-3.php",
      "data": "<?php \nadd_action(\n'admin_notices',\nfunction() {\necho '<div class=\"notice notice-info\" id=\"custom-admin-notice-3\"><p>' . esc_html( 'Check the changelog added for each plugin' ) . '</p></div>';\n}\n);"
    },
    {
      "step": "setSiteOptions",
      "options": {
        "blogname": "Better Plugin Compatibility Control Demo",
        "blogdescription": "Trying out WordPress Playground."
      }
    },
    {
      "step": "runPHP",
      "code": "<?php require_once '/wordpress/wp-load.php'; $data = array( 'user_login' => 'demo', 'user_pass' => 'password', 'role' => 'administrator', 'display_name' => 'Demo User',); wp_insert_user( $data ); ?>",
      "progress": {
        "caption": "createUser: demo"
      }
    },
    {
      "step": "login",
      "username": "demo",
      "password": "password"
    },
    {
      "step": "runPHP",
      "code": "<?php require_once '/wordpress/wp-load.php';\n$page_args = array(\n'post_type'    => 'post',\n'post_status'  => 'publish',\n'post_title'   => 'Hello World',\n'post_content' => '<html>\n<body>\n<!--StartFragment--><h1 class=\"plugin-title\" style=\"box-sizing: border-box; font-family: Inter, sans-serif; font-size: 24px; font-weight: 400; line-height: 1.2; text-wrap: balance; overflow-wrap: initial; word-break: initial; clear: none; margin: 0px; color: rgb(30, 30, 30); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space-collapse: collapse; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\">Changelogger</h1><!--EndFragment-->\n</body>\n</html>',\n);\n$page_id = wp_insert_post( $page_args, true );\nif ( is_wp_error( $page_id ) ) {\nerror_log( 'addPost error: ' . $page_id->get_error_message() );\n}",
      "progress": {
        "caption": "addPost: Hello World"
      }
    }
  ],
  "$schema": "https://playground.wordpress.net/blueprint-schema.json",
  "meta": {
    "title": "Changelogger plugin preview",
    "author": "https://github.com/oliverschloebe/changelogger"
  }
}