Opened 7 years ago
Last modified 10 months ago
#46283 new enhancement
Allow filtering post-type archive rewrites
| Reported by: | ethitter | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Rewrite Rules | Version: | 3.1 |
| Severity: | normal | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: |
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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)