Created
June 11, 2024 06:13
-
-
Save bgrgicak/b35401a9c1b267cf35e49a566540360b to your computer and use it in GitHub Desktop.
Load mardown as posts from uplods/markdown
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
{ | |
"$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