WPMU flush rewrites

<?php
private function set_rewrite_rules(){
$default_structure = '/%category%/%postname%/';
if(!get_option('aio_initialized')){
global $wp_rewrite;
$wp_rewrite->set_permalink_structure($default_structure);
$wp_rewrite->flush_rules();
update_option('aio_initialized',1);
}
}
?>

0 Comments

You must be logged in to post a comment.