apply_filters_ref_array( 'terms_pre_query', array|null $terms, WP_Term_Query $this )

Filter the terms array before the query takes place.


Description Description

Return a non-null value to bypass WordPress’s default term queries.


Top ↑

Parameters Parameters

$terms

(array|null) Return an array of term data to short-circuit WP's term query, or null to allow WP queries to run normally.

$this

(WP_Term_Query) The WP_Term_Query instance, passed by reference.



Top ↑

Source Source

File: wp-includes/class-wp-term-query.php

View on Trac


Top ↑

Changelog Changelog

Changelog
Version Description
5.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.