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

In this article

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

VersionDescription
4.4.0Introduced.

User Contributed Notes

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