Skip to content

Commit

Permalink
chore(added blueprint.json): added wp playground blueprint for plugin…
Browse files Browse the repository at this point in the history
… demo preview
  • Loading branch information
merlijnvanlent committed Oct 3, 2024
1 parent 6f3c513 commit 7b99dfa
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .wordpress-org/blueprints/blueprint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"plugins": [
"vo-html-sitemap"
],
"steps": [
{
"step": "runPHP",
"code": "<?php require_once'wordpress/wp-load.php';$post=wp_insert_post(array('post_title'=>'Sitemap','post_status'=>'publish','post_type'=>'page'));update_option('vohtmlsitemap-page',$post);update_option('permalink_structure', '/%postname%/');for($i=0;$i<500;$i++){$post=array('post_title'=>'Post'.$i,'post_content'=>'Thisispost'.$i,'post_status'=>'publish','post_date'=>date('Y-m-dH:i:s',strtotime('-'.rand(0,4).'years-'.rand(0,365).'days-'.rand(0,24).'hours-'.rand(0,60).'minutes-'.rand(0,60).'seconds')),);wp_insert_post($post);} ?>"
},
{
"step": "runPHP",
"code": "<?php require_once'wordpress/wp-load.php';flush_rewrite_rules();?>"
}
],
"preferredVersions": {
"php": "8.0",
"wp": "6.6"
},
"landingPage": "/sitemap",
"features": {
"networking": true
},
"phpExtensionBundles": [
"kitchen-sink"
],
"login": true
}

0 comments on commit 7b99dfa

Please sign in to comment.