Filter hook 'get_terms_fields'
in WP Core File wp-includes/class-wp-term-query.php at line 702
Description
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.
Occurrences
Filename |
Line Number |
wp-includes/class-wp-term-query.php |
702 |
Parameters
Type |
Name |
Description |
string[] |
$selects |
An array of fields to select for the terms query. |
array |
$args |
An array of term query arguments. |
string[] |
$taxonomies |
An array of taxonomy names. |
PHP Doc
/**
* 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.
*
* @since 2.8.0
*
* @param string[] $selects An array of fields to select for the terms query.
* @param array $args An array of term query arguments.
* @param string[] $taxonomies An array of taxonomy names.
*/