Last active
November 3, 2017 00:27
-
-
Save kadimi/623a1408de96f046c4ac43e0d3313d05 to your computer and use it in GitHub Desktop.
Override Permalink Structure in WordPress
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
<?php | |
add_action( 'option_permalink_structure', function() { | |
return '/example/%postname%/'; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment