[wp-trac] [WordPress Trac] #54534: Introduce a get_term_by_args filter
WordPress Trac
noreply at wordpress.org
Mon Nov 29 17:24:27 UTC 2021
#54534: Introduce a get_term_by_args filter
-------------------------+-----------------------------
Reporter: Chouby | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
Since #27160 `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()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54534>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list