{
  "$schema": "https://playground.wordpress.net/blueprint-schema.json",
  "landingPage": "\/comment-mention-demo\/",
  "preferredVersions": {
    "php": "8.0",
    "wp": "latest"
  },
  "steps": [
    {
      "step": "setSiteOptions",
      "options": {
        "blogname": "Comment Mention Demo",
        "blogdescription": ""
      }
    },
    {
      "step": "installPlugin",
      "pluginData": {
        "resource": "wordpress.org/plugins",
        "slug": "comment-mention"
      },
      "options": {
        "activate": true
      }
    },
    {
      "step": "runPHP",
      "code": "<?php require '/wordpress/wp-load.php';\n\n$settings = get_option( 'cmt_mntn_settings', array() );\n$settings['cmt_mntn_disabled_mention_user_roles'] = array( 'administrator' );\n$settings['cmt_mntn_enable_avatar'] = 1;\n\nupdate_option( 'cmt_mntn_settings', $settings );\n"
    },
    {
      "step": "runPHP",
      "code": "<?php require '/wordpress/wp-load.php';\n\n$content = '<!-- wp:paragraph --><p>This demo shows the Comment Mention plugin in action - it lets user tag other users in the comment section, similar to @mentions on social media.</p><!-- /wp:paragraph -->\n\n<!-- wp:heading --><h2>How to try it</h2><!-- /wp:heading -->\n\n<!-- wp:list --><ul><li>Scroll down to the comment form below.</li><li>Type <code>@</code> followed by a few letters of a username (e.g. <code>@a</code>).</li><li>Pick a user from the autocomplete dropdown that appears.</li><li>Submit your comment &mdash; the mentioned user is notified and linked in the comment.</li><li>You can configure mention settings in the <a href=\"/wp-admin/admin.php?page=comment-mention&tab=general-settings\">plugin settings page</a>.</li></ul><!-- /wp:list -->';\n\nwp_insert_post( array(\n    'post_title'     => 'Comment Mention Demo',\n    'post_content'   => $content,\n    'post_status'    => 'publish',\n    'comment_status' => 'open',\n) );\n"
    },
    {
      "step": "wp-cli",
      "command": "wp user create johndoe johndoe@example.com --display_name=\"John Doe\""
    },
    {
      "step": "wp-cli",
      "command": "wp user create peterparker peterparker@example.com --display_name=\"Peter Parker\""
    },
    {
      "step": "wp-cli",
      "command": "wp user create merryjain merryjain@example.com --display_name=\"Merry Jain\""
    },
    {
      "step": "wp-cli",
      "command": "wp user create brucewayne brucewayne@example.com --display_name=\"Bruce Wayne\""
    },
    {
      "step": "wp-cli",
      "command": "wp user create buntywp buntywp@example.com --display_name=\"BuntyWP\""
    }
  ],
  "login": true
}
