W3cubDocs

/WordPress

apply_filters( ‘get_terms_defaults’, array $defaults, string[] $taxonomies )

Filters the terms query default arguments.

Description

Use ‘get_terms_args’ to filter the passed arguments.

Parameters

$defaultsarray
An array of default get_terms() arguments.
More Arguments from get_terms( … $args )Array or string of arguments. See WP_Term_Query::__construct() for information on accepted arguments.
$taxonomiesstring[]
An array of taxonomy names.

Source

$this->query_var_defaults = apply_filters( 'get_terms_defaults', $this->query_var_defaults, $taxonomies );

Changelog

Version Description
4.4.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_terms_defaults