diff --git a/blueprints/disable-comments-demo/blueprint.json b/blueprints/disable-comments-demo/blueprint.json new file mode 100644 index 00000000..e965b48d --- /dev/null +++ b/blueprints/disable-comments-demo/blueprint.json @@ -0,0 +1,60 @@ +{ + "$schema": "https://playground.wordpress.net/blueprint-schema.json", + "meta": { + "title": "Disable Comments Demo", + "description": "Demo for the Disable Comments plugin", + "author": "noahmobes", + "categories": ["Plugins", "default"] + }, + "login": true, + "landingPage": "/disable-comments-demo-sample-post/", + "siteOptions": { + "blogname": "Disable Comments Demo", + "blogdescription": "A demo for the Disable Comments plugin" + }, + "steps": [ + { + "step": "installPlugin", + "pluginData": { + "resource": "wordpress.org/plugins", + "slug": "disable-comments" + }, + "options": { + "activate": true + } + }, + { + "step": "installTheme", + "themeData": { + "resource": "wordpress.org/themes", + "slug": "twentytwentyfive" + } + }, + { + "step": "mkdir", + "path": "/wordpress/wp-content/plugins/nav-assist" + }, + { + "step": "writeFile", + "path": "/wordpress/wp-content/plugins/nav-assist/plugin.php", + "data": "Disable Comments Settings | Sample Post

';\n}\n\nadd_action('admin_notices', 'nav_assist');" + }, + { + "step": "activatePlugin", + "pluginPath": "nav-assist/plugin.php" + }, + { + "step": "writeFile", + "path": "/wordpress/wp-content/mu-plugins/rewrite.php", + "data": "set_permalink_structure('/%postname%/'); $wp_rewrite->flush_rules(); } );" + }, + { + "step": "wp-cli", + "command": "wp post update 1 --post_title='Disable Comments Demo Sample Post' --post_content='This is a sample post for the Disable Comments plugin demo.

Edit the settings here: Disable Comments Settings.' --post_name='disable-comments-demo-sample-post'" + }, + { + "step": "wp-cli", + "command": "wp comment update 1 --comment_content='Try disabling comments using the Disable Comments plugin! This comment will disappear!'" + } + ] +} \ No newline at end of file diff --git a/blueprints/disable-comments-demo/screenshot.jpg b/blueprints/disable-comments-demo/screenshot.jpg new file mode 100644 index 00000000..6891e3d4 Binary files /dev/null and b/blueprints/disable-comments-demo/screenshot.jpg differ