Opened 7 years ago
Last modified 3 months ago
#46283 new enhancement
Allow filtering post-type archive rewrites
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | normal | Version: | 3.1 |
| Component: | Rewrite Rules | Keywords: | has-patch has-unit-tests |
| Focuses: | Cc: |
Description
If one wishes to introduce additional query arguments into a post-type archive's rewrite structure, the current options are rather cumbersome: filter the rewrites as they're generated, filter the whole rewrites array, or reproduce a considerable amount of logic from WP_Post_Type::add_rewrite_rules(). By introducing a few filters on the archive-specific rewrites, it becomes far easier to customize a post type's archive rewrites.
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.