Add 'register_post_type_args' hook
|Reported by:||mikeschinkel||Owned by:|
|Severity:||normal||Keywords:||has-patch dev-feedback 2nd-opinion|
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 (12)
comment:2 in reply to: ↑ 1 mikeschinkel — 3 years ago
comment:7 in reply to: ↑ 6 ; follow-up: ↓ 9 mikeschinkel — 16 months ago
- Summary changed from Add register_post_type and pre_register_post_type hooks to Add 'register_post_type_args' hook
Note: See TracTickets for help on using tickets.