Opened 6 years ago
Closed 5 years ago
#47591 closed enhancement (duplicate)
New filter to short circuit WP_Term_Query results
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Taxonomy | Keywords: | has-patch has-unit-tests |
Focuses: | Cc: |
Description
In #44169 we added theusers_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.
Attachments (2)
Change History (6)
Note: See
TracTickets for help on using
tickets.
Unit test