James began using WordPress in 2004. Being new to WordPress (and blogging in general), he quickly found the WordPress Support Forums and basically never left. James currently resides in sunny Southern California, where he enjoys bringing happiness to millions of WordPress.com users.
the problem i got is that it works after resaving, but it does not work using function, what is the way I have been doing it before:
$permalink_structure = get_option(‘permalink_structure’);
$category_base = get_option(‘category_base’);
$tag_base = get_option( ‘tag_base’ );
$wp_rewrite->set_permalink_structure($permalink_structure);
$wp_rewrite->set_category_base($category_base);
$wp_rewrite->set_tag_base($tag_base);
$wp_rewrite->flush_rules();