get_terms_defaults WordPress Filter Hook
The get_terms_defaults WordPress hook is used to set the default values for the get_terms() function. This function is used to retrieve the terms in a given taxonomy.
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
- $defaults
(array)An array of default get_terms() arguments.
- $taxonomies
(string[])An array of taxonomy names.
Source
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |