Playground is changing the way I work with WordPress
If you haven't tried Playground yet, head on over to playground.wordpress.net.
At first, it might not seem that impressive. The link above takes you to a WordPress demo site where you can click around and do typical WordPress things.
But the catch is that Playground is running entirely in your browser. I won't get into the wizardry that makes all this possible; you can learn more here and here.
I want to focus on what Playground can do for plugin and theme developers. In a matter of seconds. For free.
You might know that I run several WordPress plugins, Block Visibility being the most complex. You really have to try the plugin to appreciate how it works, but demo sites are annoying to set up and maintain. At least, that was my experience, but no longer now that Playground exists.
All I did was create a blueprint.json file and place it in the plugin's GitHub repository so it's publicly accessible. The file looks like this:
{
"landingPage": "/wp-admin/plugins.php",
"features": {
"networking": true
},
"steps": [
{
"step": "installPlugin",
"pluginZipFile": {
"resource": "wordpress.org/plugins",
"slug": "block-visibility"
},
"options": {
"activate": true
}
},
{
"step": "login",
"username": "admin",
"password": "password"
}
]
}You can then run Playground using this blueprint to launch WordPress pre-installed with Block Visibility. Easy as that.
Here's the format you need for the URL: playground.wordpress.net/?blueprint-url=[path-to-blueprint-file].
This just scratches the surface of what Playground can do, so check out the documentation for more. Huge props to Adam Zieliński for bringing Playground into the world, and expect big things in 2024.