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

WordPress Trac noreply at wordpress.org
Sun Feb 9 01:32:53 UTC 2014


#17447: Add 'register_post_type_args' hook
-------------------------------------------------+-------------------------
 Reporter:  mikeschinkel                         |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  3.9
Component:  Posts, Post Types                    |     Version:  3.1
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch dev-feedback 2nd-opinion   |     Focuses:
  needs-docs                                     |
-------------------------------------------------+-------------------------

Comment (by MikeSchinkel):

 Replying to [comment:15 nacin]:
 > A more detailed justification and explanation would be in order.

 Here are the use-cases I've identified from prior projects:

 - Change the values for menu/post type visibility or just disable post
 types provided by a plugin/theme that are not needed for a specific site.
 - Add new plugin/theme specific "supports" for default post types and
 custom post types that don't explicitly specify supports.
 - Add new plugin/theme specific values to support  plugin/theme added
 features. For example, 'my_exporter' value could be set to information
 that the My Exporter plugin uses to implement an export such as columns to
 include, column labels, WP_Query args for default export as well as meta
 fields to include.
 - Disable default rewrite rule addition so customized rewrite rules could
 be added in a function called for the 'registered_post_type' hook.
 - Disable default metabox callback registration so customized metabox
 callback registration could be performed in a function called for the
 'registered_post_type' hook.
 - Disable taxonomy registration for object so customized taxonomy
 registration for object could be performed in a function called for the
 'registered_post_type' hook.

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


More information about the wp-trac mailing list