In WordPress TRAC 17447 (see https://core.trac.wordpress.org/ticket/17447#comment:60 ) a new filter called register_post_type_args was added to the register_post_type API. We should take advantage of this filter to apply the oik-types overrides to the post type before it's registered.
This will allow post type overrides, such as setting has_archive to true, to be effective. Before WP 4.4, switching the has_archive flag wasn't easy... if done after the post type registration it would have required changing rewrite rules. So we didn't actually implement it. Now it should be a cinch.
In WordPress TRAC 17447 (see https://core.trac.wordpress.org/ticket/17447#comment:60 ) a new filter called
register_post_type_args
was added to theregister_post_type
API. We should take advantage of this filter to apply the oik-types overrides to the post type before it's registered.This will allow post type overrides, such as setting
has_archive
totrue
, to be effective. Before WP 4.4, switching the has_archive flag wasn't easy... if done after the post type registration it would have required changing rewrite rules. So we didn't actually implement it. Now it should be a cinch.