diff --git a/assets/blueprints/blueprint.json b/assets/blueprints/blueprint.json new file mode 100644 index 0000000..e965b48 --- /dev/null +++ b/assets/blueprints/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/disable-comments b/disable-comments new file mode 160000 index 0000000..ae61abb --- /dev/null +++ b/disable-comments @@ -0,0 +1 @@ +Subproject commit ae61abb5b032926cdb74e1e0cd8935e66d589116