Created
September 8, 2026 11:28
-
-
Save getdave/e35759437ef25fdafb0dca896c517ea5 to your computer and use it in GitHub Desktop.
TEST: gutenberg-playground-blueprints skill test run — CnL PR #79549 with seeded pages + nav menu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "https://playground.wordpress.net/blueprint-schema.json", | |
| "meta": { | |
| "title": "Create not Learn — User Testing (PR #79549)", | |
| "description": "Loads Gutenberg PR #79549, enables the Extensible Site Editor v2 and Omnibar experiments, and seeds a small realistic site (pages + nested navigation menu) so testers land on something usable rather than a blank install.", | |
| "author": "getdave" | |
| }, | |
| "landingPage": "/wp-admin/admin.php?page=site-editor-v2", | |
| "login": true, | |
| "features": { | |
| "networking": true | |
| }, | |
| "preferredVersions": { | |
| "php": "8.3", | |
| "wp": "latest" | |
| }, | |
| "steps": [ | |
| { | |
| "step": "runPHP", | |
| "code": "<?php require '/wordpress/wp-load.php'; update_option( 'gutenberg-experiments', array( 'gutenberg-extensible-site-editor' => true, 'gutenberg-omnibar' => true ) );" | |
| }, | |
| { | |
| "step": "runPHP", | |
| "code": "<?php\nrequire '/wordpress/wp-load.php';\n\n$home_id = wp_insert_post( array(\n 'post_type' => 'page',\n 'post_title' => 'Home',\n 'post_status' => 'publish',\n 'post_content' => '<!-- wp:paragraph --><p>Welcome to Acme Studio, a small design and build shop.</p><!-- /wp:paragraph -->'\n) );\n\n$about_id = wp_insert_post( array(\n 'post_type' => 'page',\n 'post_title' => 'About',\n 'post_status' => 'publish',\n 'post_content' => '<!-- wp:paragraph --><p>We are a two-person studio building websites for small businesses.</p><!-- /wp:paragraph -->'\n) );\n\n$services_id = wp_insert_post( array(\n 'post_type' => 'page',\n 'post_title' => 'Services',\n 'post_status' => 'publish',\n 'post_content' => '<!-- wp:paragraph --><p>Web design, WordPress builds, and ongoing site care.</p><!-- /wp:paragraph -->'\n) );\n\n$contact_id = wp_insert_post( array(\n 'post_type' => 'page',\n 'post_title' => 'Contact',\n 'post_status' => 'publish',\n 'post_content' => '<!-- wp:paragraph --><p>Get in touch: hello@example.com</p><!-- /wp:paragraph -->'\n) );\n\nupdate_option( 'show_on_front', 'page' );\nupdate_option( 'page_on_front', $home_id );\n" | |
| }, | |
| { | |
| "step": "runPHP", | |
| "code": "<?php\nrequire '/wordpress/wp-load.php';\n\n$about = get_page_by_title( 'About', OBJECT, 'page' );\n$services = get_page_by_title( 'Services', OBJECT, 'page' );\n$contact = get_page_by_title( 'Contact', OBJECT, 'page' );\n\n$post_content = '<!-- wp:navigation-link {\"label\":\"Home\",\"url\":\"/\",\"kind\":\"custom\"} /-->'\n . '<!-- wp:navigation-submenu {\"label\":\"About\",\"url\":\"' . esc_url( get_permalink( $about ) ) . '\",\"kind\":\"post-type\",\"id\":' . $about->ID . '} -->'\n . '<!-- wp:navigation-link {\"label\":\"Services\",\"url\":\"' . esc_url( get_permalink( $services ) ) . '\",\"kind\":\"post-type\",\"id\":' . $services->ID . '} /-->'\n . '<!-- /wp:navigation-submenu -->'\n . '<!-- wp:navigation-link {\"label\":\"Contact\",\"url\":\"' . esc_url( get_permalink( $contact ) ) . '\",\"kind\":\"post-type\",\"id\":' . $contact->ID . '} /-->';\n\nwp_insert_post( array(\n 'post_type' => 'wp_navigation',\n 'post_title' => 'Main Navigation',\n 'post_status' => 'publish',\n 'post_content' => $post_content\n) );\n" | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment