get_terms_args WordPress Filter Hook
The get_terms_args hook is used to modify the arguments used in a terms query. This hook is used mainly by plugins and themes that need to filter terms by custom taxonomies or fields.
apply_filters( 'get_terms_args', array $args , string[] $taxonomies ) #
Filters the terms query arguments.
Parameters
- $args
(array)An array of get_terms() arguments.
- $taxonomies
(string[])An array of taxonomy names.
Source
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |