[wp-trac] [WordPress Trac] #47591: New filter to short circuit WP_Term_Query results
WordPress Trac
noreply at wordpress.org
Sat Jun 22 19:58:05 UTC 2019
#47591: New filter to short circuit WP_Term_Query results
-------------------------+-----------------------------
Reporter: tlovett1 | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version:
Severity: normal | Keywords: has-patch
Focuses: |
-------------------------+-----------------------------
In #44169 we added the`users_pre_query` filter to allow plugins/themes to
short circuit `WP_User_Query` results in order to provide their own.
This patch adds the `terms_pre_query` filter which is the same logic but
for `WP_Term_Query`. Specifically 10up uses this to query results from
Elasticsearch and bypass MySQL. This is very useful for performance on
large sites.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47591>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list