-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce a blueprint for WordPress preview (#2580)
* Introduce a blueprint for WordPress preview * Update blueprint.json file
- Loading branch information
1 parent
8aaf2b0
commit b915473
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"landingPage": "/wp-admin/post.php?post=5&action=edit", | ||
"phpExtensionBundles": [ | ||
"kitchen-sink" | ||
], | ||
"steps": [ | ||
{ | ||
"step": "login", | ||
"username": "admin", | ||
"password": "password" | ||
}, | ||
{ | ||
"step": "installTheme", | ||
"themeZipFile": { | ||
"resource": "wordpress.org\/themes", | ||
"slug": "go" | ||
} | ||
}, | ||
{ | ||
"step": "runPHP", | ||
"code": "<?php\ninclude 'wordpress/wp-load.php';\nwp_insert_post(array(\n'import_id' => 5,\n'post_title' => 'CoBlocks Demo',\n'post_content' => '<!-- wp:paragraph -->\n<p>You can test out CoBlocks by adding any CoBlocks block to the page.</p>\n<!-- \/wp:paragraph -->',\n'post_status' => 'publish',\n'post_author' => 1\n));" | ||
} | ||
] | ||
} |