The fastest way to run Blueprints is to paste one into the URL "fragment" of a WordPress Playground website. Just add a #
after the .net/
.
Let's say you want to create a Playground with specific versions of WordPress and PHP using the following Blueprint:
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"preferredVersions": {
"php": "7.4",
"wp": "5.9"
}
}
To run it, go to https://playground.wordpress.net/#{"preferredVersions": {"php":"7.4", "wp":"5.9"}}
. You can also use the button below:
Use this method to run the example code in the next chapter, Build your first Blueprint.
Some tools, including GitHub, might not format the Blueprint correctly when pasted into the URL. In such cases, encode your Blueprint in Base64 and append it to the URL. For example, that's the above Blueprint in Base64 format: eyJwcmVmZXJyZWRWZXJzaW9ucyI6IHsicGhwIjoiNy40IiwgIndwIjoiNS45In19
.
To run it, go to https://playground.wordpress.net/#eyJwcmVmZXJyZWRWZXJzaW9ucyI6IHsicGhwIjoiNy40IiwgIndwIjoiNS45In19
When your Blueprint gets too wieldy, you can load it via the ?blueprint-url
query parameter in the URL, like this:
Note that the Blueprint must be publicly accessible and served with the correct Access-Control-Allow-Origin
header:
Access-Control-Allow-Origin: *
Table of contents
- What are Blueprints, and what can you do with them?
- How to load and run Blueprints?
- Build your first Blueprint
- Troubleshoot and debug Blueprints