Filters the terms query default arguments.
Description
Use ‘get_terms_args’ to filter the passed arguments.
Parameters
$defaults
array- 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. $taxonomies
string[]- 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. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.