Cool, that will be great!

thanks,
Danny

----------------------------
Sent from my iPhone

On Apr 29, 2010, at 7:16 PM, John Blackbourn <johnbillion [email protected]> wrote:

On Fri, Apr 30, 2010 at 12:55 AM, Danny G Smith <[email protected]> wrote:
Is there a WordPress function that I could put at the end of my script so that it would do it automatically

You'll want this:

global $wp_rewrite;
$wp_rewrite->flush_rules();

The best place to flush the rules is probably when your plugin is
activated (but after it registers the custom post type of course).

John
_______________________________________________
wp-testers mailing list
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-testers
_______________________________________________
wp-testers mailing list
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-testers

Reply via email to