Filters the terms array before the query takes place.
Return a non-null value to bypass WordPress’ default term queries.
$termsarray|null
$queryWP_Term_Query
$this->terms = apply_filters_ref_array( 'terms_pre_query', array( $this->terms, &$this ) );
| Version | Description |
|---|---|
| 5.3.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/terms_pre_query