/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
global $wp_rewrite; $wp_rewrite->set_permalink_structure( '/%year%/%monthnum%/%postname%/' ); $wp_rewrite->flush_rules();
URL: http://trepmal.com/scripts/updating-permalink-structure-from-a-plugin/
Comments
