Skip to content

Commit

Permalink
Introduce a blueprint for WordPress preview (#2580)
Browse files Browse the repository at this point in the history
* Introduce a blueprint for WordPress preview

* Update blueprint.json file
  • Loading branch information
EvanHerman committed Jan 10, 2024
1 parent 8aaf2b0 commit b915473
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .wordpress-org/blueprints/blueprint.json
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));"
}
]
}

0 comments on commit b915473

Please sign in to comment.