Skip to content

Commit

Permalink
Add blueprint (#30)
Browse files Browse the repository at this point in the history
* Add assets

* Update blueprint

* Update blueprint
  • Loading branch information
t-hamano authored Jun 13, 2024
1 parent 1a0d0fc commit bef7b12
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": "enable-responsive-image"
}
},
{
"step": "runPHP",
"code": "<?php\ninclude 'wordpress/wp-load.php';\nwp_insert_post(array(\n'import_id' => 5,\n'post_title' => 'Enable Responsive Image',\n'post_content' => '<!-- wp:paragraph -->\n<p>Select the Image block, open the block sidebar, and check the \"Image sources\" section.</p>\n<!-- /wp:paragraph -->\n<!-- wp:image {\"sizeSlug\":\"large\"} -->\n<figure class=\"wp-block-image size-large\"><img src=\"https://s.w.org/images/home/screen-themes.png\" alt=\"\"/></figure>\n<!-- /wp:image -->',\n'post_status' => 'publish',\n'post_author' => 1\n));"
}
]
}

0 comments on commit bef7b12

Please sign in to comment.