Opened 5 years ago
Last modified 5 years ago
#54534 new enhancement
Introduce a get_term_by_args filter
| Reported by: | Chouby | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Taxonomy | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description (last modified by )
Since #21760 get_term_by() uses get_terms().
get_term_by() term query arguments are thus already filterable with the filter get_terms_args. However it's difficult to detect whether the arguments passed to the filter come from a call to get_term_by() or directly from a more generic call to get_terms().
I thus propose to add new filter specif to get_term_by().
Attachments (1)
Change History (7)
#2
@
5 years ago
Maybe the proposed name is not the best. But the filter I propose is in the function get_term_by(), just before it calls get_terms().
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Thanx @Chouby, I think this is a good idea.
One note, tho: I think the ticket mentioned in the description is incorrect, because it doesn't have anything to do with
get_term_by():-) Can you double-check and correct?