-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 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,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": "richtext-extension" | ||
} | ||
}, | ||
{ | ||
"step": "runPHP", | ||
"code": "<?php\ninclude 'wordpress/wp-load.php';\nwp_insert_post(array(\n'import_id' => 5,\n'post_title' => 'Flexible Table Block',\n'post_content' => '<!-- wp:paragraph -->\n<p>Lorem ipsum dolor sit <span class=\"rtex-highlighter-0\">amet</span>, consectetur adipiscing elit, sed do eiusmod tempor <span class=\"rtex-highlighter-1\">incididunt</span> ut labore et dolore magna <span class=\"rtex-highlighter-2\">aliqua</span>. Ut enim ad minim veniam, quis nostrud exercitation <span class=\"rtex-highlighter-3\">ullamco</span> laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in <span class=\"rtex-font-size-0\">reprehenderit</span> in voluptate velit esse <span class=\"rtex-font-size-1\">cillum</span> dolore eu fugiat nulla <span class=\"rtex-font-size-2\">pariatur</span>. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt <span class=\"rtex-font-size-3\">mollit</span> anim id est laborum.</p>\n<!-- /wp:paragraph -->',\n'post_status' => 'publish',\n'post_author' => 1\n));" | ||
} | ||
] | ||
} |