{
	"$schema": "https://playground.wordpress.net/blueprint-schema.json",
	"landingPage": "/wp-admin/admin.php?page=cms-tpv-page-page",
	"preferredVersions": {
		"php": "8.2",
		"wp": "6.9"
	},
	"steps": [
		{
			"step": "login",
			"username": "admin",
			"password": "password"
		},
		{
			"step": "installPlugin",
			"pluginData": {
				"resource": "wordpress.org/plugins",
				"slug": "cms-tree-page-view"
			},
			"options": {
				"activate": true
			}
		},
		{
			"step": "runPHP",
			"code": "<?php require_once '/wordpress/wp-load.php'; $mk = function( $title, $parent = 0, $order = 0 ) { return wp_insert_post( array( 'post_title' => $title, 'post_type' => 'page', 'post_status' => 'publish', 'post_author' => 1, 'post_parent' => $parent, 'menu_order' => $order ) ); }; $about = $mk( 'About', 0, 1 ); $mk( 'Our Team', $about, 1 ); $mk( 'Company History', $about, 2 ); $mk( 'Careers', $about, 3 ); $services = $mk( 'Services', 0, 2 ); $mk( 'Consulting', $services, 1 ); $mk( 'Design', $services, 2 ); $mk( 'Development', $services, 3 ); $products = $mk( 'Products', 0, 3 ); $mk( 'Pricing', $products, 1 ); $mk( 'Features', $products, 2 ); $mk( 'Blog', 0, 4 ); $mk( 'Contact', 0, 5 );"
		}
	]
}
