Posted By

trepmal on 08/11/10


Tagged

wordpress permalinks


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

jamalmohamed
manavecplan


update permalinks in WordPress


 / Published in: PHP
 

URL: http://trepmal.com/scripts/updating-permalink-structure-from-a-plugin/

  1. global $wp_rewrite;
  2. $wp_rewrite->set_permalink_structure( '/%year%/%monthnum%/%postname%/' );
  3. $wp_rewrite->flush_rules();

Report this snippet  

You need to login to post a comment.