Share your favorite Blueprints and workflows #1858
ndiego
started this conversation in
Blueprints
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Now that Blueprints are supported in Studio, let’s trade examples. Share your Blueprint(s) below, a quick note about what it sets up, and how you tend to use it.
I’ll go first. This is my personal blueprint for scaffolding new projects, and it's basically a mirror of my own website. It installs several of my public plugins from WordPress.org, a few experimental ones hosted on GitHub, and my experimental block theme, Base.
You can preview and download the blueprint from the Playground Blueprint Builder.
Click to expand blueprint
{ "$schema": "https://playground.wordpress.net/blueprint-schema.json", "landingPage": "/wp-admin/", "login": true, "preferredVersions": { "php": "8.3", "wp": "latest" }, "plugins": [ "block-visibility", "icon-block", "social-sharing-block", "gutenberg" ], "steps": [ { "step": "defineWpConfigConsts", "consts": { "WP_DEBUG": true, "WP_DEBUG_DISPLAY": false, "WP_DEBUG_LOG": true, "WP_DEVELOPMENT_MODE": true }, "method": "rewrite-wp-config" }, { "step": "installPlugin", "options": { "activate": false }, "pluginData": { "resource": "wordpress.org/plugins", "slug": "plugin-check" } }, { "step": "installPlugin", "options": { "activate": true, "targetFolderName": "better-code-blocks" }, "pluginData": { "resource": "git:directory", "url": "https://github.com/ndiego/better-code-blocks.git", "ref": "HEAD", "path": "/" } }, { "step": "installPlugin", "options": { "activate": true, "targetFolderName": "enable-linked-groups" }, "pluginData": { "resource": "git:directory", "url": "https://github.com/ndiego/enable-linked-groups.git", "ref": "HEAD", "path": "/" } }, { "step": "installPlugin", "options": { "activate": true, "targetFolderName": "enable-button-icons" }, "pluginData": { "resource": "git:directory", "url": "https://github.com/ndiego/enable-button-icons.git", "ref": "HEAD", "path": "/" } }, { "step": "installPlugin", "options": { "activate": true, "targetFolderName": "base-blocks" }, "pluginData": { "resource": "git:directory", "url": "https://github.com/ndiego/base-blocks.git", "ref": "HEAD", "path": "/" } }, { "step": "installTheme", "options": { "activate": true, "targetFolderName": "base" }, "themeData": { "resource": "git:directory", "url": "https://github.com/ndiego/base.git", "ref": "HEAD", "path": "/" } }, { "step": "runPHP", "code": "<?php require_once '/wordpress/wp-load.php'; $wp_rewrite->set_permalink_structure( '/%postname%/' ); include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); deactivate_plugins( 'hello.php', 'hello-dolly', 'akismet/akismet.php' ); include_once( ABSPATH . 'wp-admin/includes/file.php' ); delete_plugins( [ 'hello.php', 'hello-dolly', 'akismet/akismet.php' ] );" }, { "step": "updateUserMeta", "meta": { "admin_color": "modern", "show_welcome_panel": 0 }, "userId": 1 } ] }Beta Was this translation helpful? Give feedback.
All reactions