Opened 7 years ago
Closed 7 years ago
#47591 closed enhancement (duplicate)
New filter to short circuit WP_Term_Query results
| Reported by: | tlovett1 | Owned by: | desrosj |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Taxonomy | Version: | |
| Severity: | normal | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Unit test