Created
July 11, 2012 22:46
-
-
Save alettieri/3094267 to your computer and use it in GitHub Desktop.
Flush WordPress Permalinks
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 | |
function flush_site_rules(){ | |
global $wp_rewrite; | |
$wp_rewrite->flush_rules(); | |
} | |
add_filter("wp_loaded","flush_site_rules"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment