Skip to content

Commit

Permalink
Add blueprint for live preview
Browse files Browse the repository at this point in the history
  • Loading branch information
ocean90 committed Nov 18, 2024
1 parent d7bc52d commit 34360ef
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .wordpress-org/blueprints/blueprint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"landingPage": "/our-authors",
"preferredVersions": {
"php": "8.1",
"wp": "latest"
},
"features": {
"networking": true
},
"steps": [
{
"step": "login"
},
{
"step": "installPlugin",
"pluginData": {
"resource": "wordpress.org/plugins",
"slug": "wp-team-list"
},
"options": {
"activate": true
}
},
{
"step": "runPHP",
"code": "<?php require_once 'wordpress/wp-load.php'; wp_insert_user( [ 'user_login' => 'author1', 'user_pass' => 'author1', 'user_email' => 'author1@localhost', 'first_name' => 'Stevie', 'last_name' => 'Turner', 'display_name' => 'Stevie Turner', 'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'role' => 'author',] ); wp_insert_user( [ 'user_login' => 'author2', 'user_pass' => 'author2', 'user_email' => 'author2@localhost', 'first_name' => 'Hannah', 'last_name' => 'Baker', 'display_name' => 'Hannah Baker', 'description' => 'Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.', 'role' => 'author',] ); wp_insert_post( [ 'post_title' => 'Our Authors', 'post_type' => 'page', 'post_name' => 'our-authors', 'post_content' => '<!-- wp:required/wp-team-list {\"roles\":[\"author\"]} /-->', 'post_status' => 'publish', 'post_author' => 1,] );"
},
{
"step": "setSiteOptions",
"options": {
"blogname": "Team List Demo",
"permalink_structure": "/%postname%/"
}
}
]
}

0 comments on commit 34360ef

Please sign in to comment.