Skip to content

Commit 7edc4be

Browse files
authored
Add blueprint to enable Gutenberg Guidelines experiment (#179)
## Summary Gutenberg Experiments page and drops the user directly on the Guidelines admin screen. ## What it does 1. Installs the Gutenberg plugin 2. Runs a PHP snippet to toggle on the `gutenberg-guidelines` key in the `gutenberg-experiments` option 3. Lands the logged-in user on `/wp-admin/admin.php?page=guidelines-wp-admin` ## Testing Preview in WordPress Playground: https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent. com/smithjw1/blueprints/trunk/blueprints/gutenberg-guidelines/blueprint.json - [x] Gutenberg plugin is active - [x] **Gutenberg** → **Experiments** shows the Guidelines experiment checked - [x] Landing page is `/wp-admin/admin.php?page=guidelines-wp-admin`
1 parent 34e468c commit 7edc4be

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
3+
"meta": {
4+
"title": "Gutenberg Guidelines Experiment enabled",
5+
"author": "smithjw1",
6+
"description": "Enables the Gutenberg Guidelines experiment from the Gutenberg Experiments page",
7+
"categories": ["Gutenberg", "Experiments"]
8+
},
9+
"landingPage": "/wp-admin/admin.php?page=guidelines-wp-admin",
10+
"login": true,
11+
"plugins": ["gutenberg"],
12+
"steps": [
13+
{
14+
"step": "runPHP",
15+
"code": "<?php require '/wordpress/wp-load.php'; update_option( 'gutenberg-experiments', array( 'gutenberg-guidelines' => true ) );"
16+
}
17+
]
18+
}

0 commit comments

Comments
 (0)