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

WordPress Trac noreply at wordpress.org
Wed Sep 16 17:12:05 UTC 2015


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

Comment (by wonderboymusic):

 > professional programmers often need to modify the behavior based on
 client expectations and requirements

 Professional programmers offer solutions to clients. Clients don't dictate
 specific modifications to `register_post_type()`. Your two examples are
 already accomplished through filters. What other things to do you want to
 change, specifically? If your use cases are vague, then they aren't an
 emergency.

 There are no plans to officially offer a filter for these args. If you
 want to change the `global` value for `$wp_post_types`, you can, and you'd
 be accomplishing the same thing. You're also voiding your warranty. Want
 to do it as soon as the post type is registered? Use the
 `registered_post_type` action.

 This isn't a "professional" vs "amateur" argument.

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


More information about the wp-trac mailing list