Skip to content

Instantly share code, notes, and snippets.

@bgrgicak
Created June 11, 2024 06:13
Show Gist options
  • Save bgrgicak/b35401a9c1b267cf35e49a566540360b to your computer and use it in GitHub Desktop.
Save bgrgicak/b35401a9c1b267cf35e49a566540360b to your computer and use it in GitHub Desktop.
Load mardown as posts from uplods/markdown
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"landingPage": "/",
"steps": [
{
"step": "login"
},
{
"step": "writeFile",
"path": "/wordpress/wp-content/mu-plugins/rewrite.php",
"data": "<?php add_action( 'after_setup_theme', function() { global $wp_rewrite; $wp_rewrite->set_permalink_structure('/%postname%/'); $wp_rewrite->flush_rules(); } );"
},
{
"step": "installPlugin",
"pluginZipFile": {
"resource": "url",
"url": "https://github-proxy.com/proxy/?repo=bgrgicak/playground-blog"
},
"options": {
"activate": false
}
},
{
"step": "mkdir",
"path": "/wordpress/wp-content/plugins/playground-markdown"
},
{
"step": "mv",
"fromPath": "/wordpress/wp-content/plugins/playground-blog-main/playground-markdown",
"toPath": "/wordpress/wp-content/plugins/playground-markdown"
},
{
"step": "activatePlugin",
"pluginPath": "playground-markdown/playground-markdown.php"
},
{
"step": "installPlugin",
"pluginZipFile": {
"resource": "url",
"url": "https://github-proxy.com/proxy/?repo=dmsnell/blocky-formats"
},
"options": {
"activate": false
}
},
{
"step": "mv",
"fromPath": "/wordpress/wp-content/plugins/blocky-formats-trunk",
"toPath": "/wordpress/wp-content/plugins/blocky-formats"
},
{
"step": "activatePlugin",
"pluginPath": "blocky-formats/blocky-formats.php"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment