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

Reply via email to