Last active
March 8, 2024 07:24
-
-
Save bgrgicak/825e02c42c8141378fc83c3b83e343b4 to your computer and use it in GitHub Desktop.
Set permalink structure
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
{ | |
"landingPage": "/category/uncategorized/", | |
"phpExtensionBundles": [ | |
"kitchen-sink" | |
], | |
"features": { | |
"networking": true | |
}, | |
"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(); } );" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment