diff --git a/.wordpress-org/blueprints/blueprint.json b/.wordpress-org/blueprints/blueprint.json new file mode 100644 index 0000000..469a714 --- /dev/null +++ b/.wordpress-org/blueprints/blueprint.json @@ -0,0 +1,32 @@ +{ + "$schema": "https://playground.wordpress.net/blueprint-schema.json", + "landingPage": "/blockparty-iframe-demo/", + "preferredVersions": { + "php": "8.1", + "wp": "latest" + }, + "steps": [ + { + "step": "installPlugin", + "pluginData": { + "resource": "git:directory", + "url": "https://github.com/BeAPI/blockparty-iframe", + "ref": "1.1.0", + "refType": "tag" + }, + "options": { + "activate": true, + "targetFolderName": "blockparty-iframe" + } + }, + { + "step": "login", + "username": "admin", + "password": "password" + }, + { + "step": "runPHP", + "code": "\n
\n'; $page_id = wp_insert_post( array( 'post_title' => 'Blockparty Iframe', 'post_name' => 'blockparty-iframe-demo', 'post_content' => $page_content, 'post_status' => 'publish', 'post_type' => 'page' ) ); echo 'Page created with ID: ' . $page_id; ?>" + } + ] +} diff --git a/README.md b/README.md index 6c43c47..c556544 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Blockparty — Iframe +[](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/beapi/blockparty-iframe/refs/heads/main/.wordpress-org/blueprints/blueprint.json) + [](https://www.gnu.org/licenses/gpl-2.0) [](https://wordpress.org/) [](https://php.net/)