Opened 16 years ago
Closed 15 years ago
#15020 closed enhancement (fixed)
Additional Filters to get_terms
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 3.1 | Priority: | normal |
| Severity: | normal | Version: | 3.1 |
| Component: | Plugins | Keywords: | has-patch |
| Focuses: | Cc: |
Description
Currently in 3.1 (trunk) there is a general lack filters running on get_terms to enable advanced filtering and other functionality.
See my attached patch that offers up similar functionality to WP_Query::query
Attachments (2)
Change History (11)
#1
@
16 years ago
Just wanted to check in and see if there was anything further needed from me to get this into 3.1?
@
15 years ago
Refreshed patch, also adjusted final returns (cached / non-cached) to use best-practice coding as per @scribu's suggestion
#3
@
15 years ago
- Keywords has-patch added
Refreshed patch, also adjusted final returns (cached / non-cached) to use best-practice coding as per @scribu's suggestion
#5
@
15 years ago
I haven't included the 'pre_get_terms' filter because I'm thinking you might want to also modify the taxonomies array.
A solution would be to put $taxonomies inside $args, pass it to the filter and then overwrite the $taxonomy variable.
Initial Patch including the new filters