terms_pre_query

Advertisement

Summery Summery

Filter the terms array before the query takes place.

Syntax Syntax

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

Description Description

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

Parameters Parameters

$terms

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

$this

The WP_Term_Query instance, passed by reference.

Source Source

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

Advertisement

Changelog Changelog

Changelog
Version Description
5.3.0 Introduced.

Advertisement

Leave a Reply