Add 'register_post_type_args' hook
|Reported by:||mikeschinkel||Owned by:|
|Component:||Posts, Post Types||Keywords:||has-patch dev-feedback 2nd-opinion needs-docs|
I have two different use cases where I ideally would be able to hook the register_post_type() function:
- To add custom attributes and custom 'supports' values; current hooks don't allow adding support at the right time to be fully robust.
- 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().
Change History (34)
comment:2 in reply to: ↑ 1 mikeschinkel — 3 years ago
comment:7 in reply to: ↑ 6 ; follow-up: ↓ 9 mikeschinkel — 19 months ago
- Summary changed from Add register_post_type and pre_register_post_type hooks to Add 'register_post_type_args' hook
comment:22 follow-up: ↓ 24 nickciske — 5 weeks ago
Note: See TracTickets for help on using tickets.