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.
693* @since 2.8.0694*695* @param string[]$selects An array of fields to select for the terms query.696* @param array$args An array of term query arguments.697* @param string[]$taxonomies An array of taxonomy names.698*/699$fields=implode(', ',apply_filters('get_terms_fields',$selects,$args,$taxonomies));700701$join.=" INNER JOIN $wpdb->term_taxonomy AS tt ON t.term_id = tt.term_id";702703if(!empty($this->query_vars['object_ids'])){704$join.=" INNER JOIN {$wpdb->term_relationships} AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id";705$distinct='DISTINCT';
History
Introduced in 2.8.0. Unchanged from 6.7.7 through 7.1.0.