[wp-trac] [WordPress Trac] #17447: Add register_post_type and pre_register_post_type hooks

WordPress Trac wp-trac at lists.automattic.com
Sun May 15 21:37:32 UTC 2011

#17447: Add register_post_type and pre_register_post_type hooks
 Reporter:  mikeschinkel  |      Owner:
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Post Types    |    Version:  3.1
 Severity:  normal        |   Keywords:  has-patch dev-feedback
 I have two different use cases where I ideally would be able to hook the
 `register_post_type()` function:

 1. To add custom attributes and custom `'supports'` values; current hooks
 don't allow adding support at the right time to be fully robust.

 2. To disable the default rewrite logic in order to support customized
 rewrite logic passed as custom attributes.

 I've attached a patch that adds `'pre_register_post_type'` and
 `'register_post_type'` hooks to `register_post_type()`.

Ticket URL: <http://core.trac.wordpress.org/ticket/17447>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list