Last active
June 15, 2019 06:54
-
-
Save joebasurto/bb40916d3840ccada446c389188983dc to your computer and use it in GitHub Desktop.
Wordpress - Rewrite Flush
This file contains hidden or 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 | |
// Flush Rewrites | |
register_activation_hook( __FILE__, 'myplugin_flush_rewrites' ); | |
function myplugin_flush_rewrites() { | |
// call your rewrite rules registration function here (it should also be hooked into 'init') | |
myplugin_custom_rewrite_rules_registration(); | |
flush_rewrite_rules(); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment