{
  "$schema": "https://playground.wordpress.net/blueprint-schema.json",
  "landingPage": "/wp-admin/post.php?post=5&action=edit",
  "preferredVersions": {
    "php": "8.0",
    "wp": "latest"
  },
  "steps": [
    {
      "step": "login",
      "username": "admin",
      "password": "password"
    },
    {
      "step": "installPlugin",
      "pluginData": {
        "resource": "wordpress.org/plugins",
        "slug": "co-authors-plus"
      }
    },
    {
      "step": "runPHP",
      "code": "<?php require '/wordpress/wp-load.php'; wp_insert_user(['user_login' => 'janesmith', 'user_pass' => 'password', 'display_name' => 'Jane Smith', 'role' => 'author', 'user_email' => 'jane@example.com']); global $coauthors_plus; if ($coauthors_plus && $coauthors_plus->guest_authors) { $coauthors_plus->guest_authors->create(['display_name' => 'Alex Johnson (Guest Author)', 'user_login' => 'alex-johnson', 'user_email' => 'alex@example.com']); } $content = '<!-- wp:paragraph --><p>This post demonstrates Co-Authors Plus with multiple authors assigned, including a guest author.</p><!-- /wp:paragraph --><!-- wp:heading --><h2 class=\"wp-block-heading\">Authors</h2><!-- /wp:heading --><!-- wp:co-authors-plus/coauthors --><div class=\"wp-block-co-authors-plus-coauthors\"><!-- wp:co-authors-plus/name {\"isLink\":true} /--></div><!-- /wp:co-authors-plus/coauthors --><!-- wp:paragraph --><p>The block above displays all co-authors. Open the Authors panel in the sidebar to manage them.</p><!-- /wp:paragraph -->'; $post_id = wp_insert_post(['post_title' => 'Article with Multiple Authors', 'post_content' => $content, 'post_status' => 'draft', 'post_author' => 1]); if ($coauthors_plus) { $coauthors_plus->add_coauthors($post_id, ['admin', 'janesmith', 'alex-johnson']); } ?>"
    }
  ]
}
