[wp-trac] [WordPress Trac] #54534: Introduce a get_term_by_args filter
WordPress Trac
noreply at wordpress.org
Mon Nov 29 19:23:57 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 | Resolution:
Keywords: | Focuses:
-------------------------+------------------------------
Old description:
> 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()`.
New description:
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()`.
--
Comment (by SergeyBiryukov):
Corrected the ticket number in the description.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54534#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list