Blorner

Tuesday, July 27, 2010

Automatically set permalink custom structure after Wordpress installation

For setting the permalink structure that you want to be set automatically after Wordpress installation, open the file schema.php from the directory /wp-admin/includes/ and set the value of permalink_structure of the array $options of the function populate_options that structure which you want to be set. Then open the file upgrade.php from the same directory and add $wp_rewrite->set_permalink_structure(get_option("permalink_structure")); just before $wp_rewrite->flush_rules(); in the function wp_install.

No comments:

Post a Comment

Art Works Expo