[wp-trac] [WordPress Trac] #17447: Add 'register_post_type_args' hook

WordPress Trac noreply at wordpress.org
Fri Sep 25 09:45:43 UTC 2015


#17447: Add 'register_post_type_args' hook
-------------------------------+-----------------------------
 Reporter:  mikeschinkel       |       Owner:  SergeyBiryukov
     Type:  enhancement        |      Status:  closed
 Priority:  normal             |   Milestone:  4.4
Component:  Posts, Post Types  |     Version:  3.1
 Severity:  normal             |  Resolution:  fixed
 Keywords:  has-patch commit   |     Focuses:
-------------------------------+-----------------------------

Comment (by bobbingwide):

 I was just about to raise this requirement myself as I have a desire to
 allow the `has_archive` flag to be altered by the user. Obviously there's
 no problem with a user defined post type (one that's not yet registered)
 but it's a real challenge with a post type that is registered by another
 plugin.
 I'm glad I didn't have to write the code that would have to fiddle about
 with rewrite rules to achieve this.

 Now that I've written this comment I realize that I could probably have
 done my overriding registration first. But I'm happy to wait for the
 official version.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/17447#comment:60>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list