Used By
| Used By | Description |
|---|---|
| wp-includes/class-wp-term-query.php: WP_Term_Query::get_terms() | Get terms, based on query_vars. |
Filters the fields to select in the terms query.
Field lists modified using this filter will only modify the term fields returned by the function when the $fields parameter set to ‘count’ or ‘all’. In all other cases, the term fields in the results array will be determined by the $fields parameter alone.
Use of this filter can result in unpredictable behavior, and is not recommended.
(string[]) An array of fields to select for the terms query.
(array) An array of term query arguments.
(string[]) An array of taxonomy names.
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_terms_fields