Skip to content

Instantly share code, notes, and snippets.

@alettieri
Created July 11, 2012 22:46
Show Gist options
  • Save alettieri/3094267 to your computer and use it in GitHub Desktop.
Save alettieri/3094267 to your computer and use it in GitHub Desktop.
Flush WordPress Permalinks
<?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