Run flush_rewrite_rules() after most custom post types have been registered