Skip to content

Instantly share code, notes, and snippets.

@SirLouen
Created December 26, 2025 18:12
Show Gist options
  • Select an option

  • Save SirLouen/b88a1107268419dfedd38ce6d76eb5dc to your computer and use it in GitHub Desktop.

Select an option

Save SirLouen/b88a1107268419dfedd38ce6d76eb5dc to your computer and use it in GitHub Desktop.
Gutenberg UI Playground Blueprint
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"preferredVersions": {
"php": "8.3",
"wp": "trunk"
},
"features": {
"networking": true
},
"login": true,
"landingPage": "/wp-admin/admin.php?page=gutenberg-ui-playground",
"steps": [
{
"step": "mkdir",
"path": "/tmp/gutenberg"
},
{
"step": "writeFile",
"path": "/tmp/gutenberg/artifact.zip",
"data": {
"resource": "url",
"url": "/plugin-proxy.php?org=WordPress&repo=gutenberg&workflow=Build%20Gutenberg%20Plugin%20Zip&artifact=gutenberg-plugin&branch=trunk",
"caption": "Downloading Gutenberg branch trunk"
}
},
{
"step": "installPlugin",
"pluginData": {
"resource": "url",
"url": "https://github.com/SirLouen/gutenberg-ui-playground/raw/refs/heads/trunk/dist/gutenberg-ui-playground.zip"
}
},
{
"step": "runPHP",
"code": "<?php\nrequire_once 'wordpress/wp-load.php';\nupdate_option( 'gutenberg_ui_playground_code', \"<Field.Root>\\n <Field.Label>Label</Field.Label>\\n <Field.Control\\n render={ <input type=\\\"text\\\" placeholder=\\\"Insert something here\\\" /> }\\n />\\n <Field.Description>\\n Field Description\\n </Field.Description>\\n</Field.Root>\" );\necho 'Playground code installed successfully.';\n"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment