{
	"$schema": "https://playground.wordpress.net/blueprint-schema.json",
	"landingPage": "/wp-admin/admin.php?page=master-addons-settings",
	"preferredVersions": {
		"php": "8.2",
		"wp": "latest"
	},
	"phpExtensionBundles": [
		"kitchen-sink"
	],
	"features": {
		"networking": true
	},
	"steps": [
		{
			"step": "installPlugin",
			"pluginData": {
				"resource": "wordpress.org/plugins",
				"slug": "elementor"
			}
		},
		{
			"step": "installPlugin",
			"pluginData": {
				"resource": "wordpress.org/plugins",
				"slug": "master-addons"
			}
		},
		{
			"step": "installTheme",
			"themeData": {
				"resource": "wordpress.org/themes",
				"slug": "brooklyn-lite"
			}
		},
		{
			"step": "writeFile",
			"path": "/wordpress/wp-content/uploads/2025/01/sample-image-1.jpg",
			"data": {
				"resource": "url",
				"url": "https://images.unsplash.com/photo-1531297484001-80022131f5a1?w=800&q=80"
			}
		},
		{
			"step": "writeFile",
			"path": "/wordpress/wp-content/uploads/2025/01/sample-image-2.jpg",
			"data": {
				"resource": "url",
				"url": "https://images.unsplash.com/photo-1488590528505-98d2b5aba04b?w=800&q=80"
			}
		},
		{
			"step": "writeFile",
			"path": "/wordpress/wp-content/uploads/2025/01/sample-image-3.jpg",
			"data": {
				"resource": "url",
				"url": "https://images.unsplash.com/photo-1518770660439-4636190af475?w=800&q=80"
			}
		},
		{
			"step": "runPHP",
			"code": "<?php require_once 'wordpress/wp-load.php'; update_option('elementor_onboarded', true); update_option('elementor_experiment-container', 'active'); update_option('elementor_experiment-nested-elements', 'active'); $upload_dir = wp_upload_dir(); $images = array( array('file' => 'sample-image-1.jpg', 'title' => 'Tech Workspace'), array('file' => 'sample-image-2.jpg', 'title' => 'Laptop Setup'), array('file' => 'sample-image-3.jpg', 'title' => 'Circuit Board') ); $attachment_ids = array(); foreach ($images as $img) { $file_path = $upload_dir['basedir'] . '/2025/01/' . $img['file']; if (file_exists($file_path)) { $attachment = array( 'post_mime_type' => 'image/jpeg', 'post_title' => $img['title'], 'post_content' => '', 'post_status' => 'inherit' ); $attach_id = wp_insert_attachment($attachment, $file_path); if (!is_wp_error($attach_id)) { require_once(ABSPATH . 'wp-admin/includes/image.php'); $attach_data = wp_generate_attachment_metadata($attach_id, $file_path); wp_update_attachment_metadata($attach_id, $attach_data); $attachment_ids[] = $attach_id; } } } $pages = array( array('title' => 'Home', 'slug' => 'home'), array('title' => 'About Us', 'slug' => 'about-us'), array('title' => 'Services', 'slug' => 'services'), array('title' => 'Contact', 'slug' => 'contact') ); foreach ($pages as $page) { $page_id = wp_insert_post(array( 'post_title' => $page['title'], 'post_name' => $page['slug'], 'post_status' => 'publish', 'post_type' => 'page', 'post_content' => '' )); if ($page_id && !is_wp_error($page_id)) { update_post_meta($page_id, '_elementor_edit_mode', 'builder'); update_post_meta($page_id, '_elementor_template_type', 'wp-page'); update_post_meta($page_id, '_elementor_version', '3.18.0'); update_post_meta($page_id, '_elementor_data', '[]'); } } $home_page = get_page_by_path('home'); if ($home_page) { update_option('show_on_front', 'page'); update_option('page_on_front', $home_page->ID); } ?>"
		},
		{
			"step": "login",
			"username": "admin",
			"password": "password"
		}
	]
}
