Opened 14 years ago
Closed 8 years ago
#14449 closed enhancement (duplicate)
Create add_permastruct() filters for register_taxonomy() and register_post_type()
Reported by: | wjm | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.0 |
Component: | Taxonomy | Keywords: | needs-refresh needs-docs |
Focuses: | Cc: |
Description
When registering taxonomies { using register_taxonomy() }, it would be good to have a filter that controls the $struct argument for add_permastruct().
That way you can modify the rewrite rules without having to hack $wp_filters->rules
This patch creates the filter "register_taxonomy_permastruct"
Note: the same could be applied to register_post_type()
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
I imagine we would instead offer these as arguments for the rewrite flag. In the meantime, you can set rewrite to false and roll your own.