[wp-trac] [WordPress Trac] #32629: Introduce pre_get_term filter
WordPress Trac
noreply at wordpress.org
Sat Jun 13 20:02:05 UTC 2015
#32629: Introduce pre_get_term filter
-----------------------------+---------------------------
Reporter: westonruter | Owner: boonebgorges
Type: feature request | Status: reviewing
Priority: normal | Milestone: 4.3
Component: Taxonomy | Version: 2.3
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-----------------------------+---------------------------
Comment (by boonebgorges):
A bypass filter for `get_term()` is a very powerful tool. I'm concerned
that (a) it's liable to be misused, and (b) if we create such a term here,
we'll be asked for similar filters elsewhere in the taxonomy component
(`wp_update_term()`, `get_terms()`, etc) as well as for objects like
posts.
Looking at how you're using the filter, it seems like a filter on the
return value of `wp_get_nav_menu_object()` would actually work better for
your purposes. Does that seem right?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32629#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list