{
	"$schema": "https://playground.wordpress.net/blueprint-schema.json",
	"description": "SlugTrace Demonstration: View URL History for Pages.",
	"landingPage": "/wp-admin/post.php?post=2&action=edit",
	"steps": [
		{
			"step": "installPlugin",
			"pluginZipFile": {
				"resource": "wordpress.org/plugins",
				"slug": "slugtrace"
			}
		},
		{
			"step": "activatePlugin",
			"pluginPath": "slugtrace/slugtrace.php"
		},
		{
			"step": "setSiteOptions",
			"options": {
				"permalink_structure": "/%postname%/"
			}
		},
		{
			"step": "runPHP",
			"code": "<?php // Set up a page with slug history for the demo.\ninclude 'wp-load.php';\n\n// 1. Create the page (Published)\n$page_id = wp_insert_post( array(\n\t'post_title'   => 'About SlugTrace Demo',\n\t'post_name'    => 'slugtrace-demo-old',\n\t'post_content' => 'This page has a hidden redirect history.',\n\t'post_status'  => 'publish',\n\t'post_type'    => 'page'\n) );\n\n// 2. Change the slug to trigger the history mechanism\n// The 'post_updated' hook in SlugTrace will catch this.\nwp_update_post( array(\n\t'ID'        => $page_id,\n\t'post_name' => 'slugtrace-demo-current'\n) );\n?>"
		}
	]
}