Your plugin enables a new custom post type. What is the best way to ensure that it works with all permalink structures?
Register an activation hook and call
register_post_type()andflush_rewrite_rules()on it.Call
register_post_type()andflush_rewrite_rules()on every page load, on an appropriate hook such as 'init'.Call
register_post_type()on every page load, and callflush_rewrite_rules()once on an activation hook.register_post_type()should handle everything, there's no other action necessary.
