Skip to content

Commit

Permalink
Add blueprint (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano authored Jun 26, 2024
1 parent 6c1ec3d commit 62d771a
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .wordpress-org/blueprints/blueprint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"landingPage": "/wp-admin/post.php?post=5&action=edit",
"steps": [
{
"step": "login",
"username": "admin",
"password": "password"
},
{
"step": "installPlugin",
"pluginZipFile": {
"resource": "wordpress.org/plugins",
"slug": "piano-block"
}
},
{
"step": "runPHP",
"code": "<?php\ninclude 'wordpress/wp-load.php';\nwp_insert_post(array(\n'import_id' => 5,\n'post_title' => 'Piano Block',\n'post_content' => '<!-- wp:piano-block/piano /-->',\n'post_status' => 'publish',\n'post_author' => 1\n));"
}
]
}

0 comments on commit 62d771a

Please sign in to comment.