get_terms_fields

get_terms_fields

Hook Type: filter
See hook in action
See hook in
Displaying hooks found in version: wordpress-5.2.2

apply_filters('get_terms_fields') is found 1 times:

  • /wp-includes/class-wp-term-query.php line 635
    		 * @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.
    		 */
    		$fields = implode( ', ', apply_filters( 'get_terms_fields', $selects, $args, $taxonomies ) );
    
    		$join .= " INNER JOIN $wpdb->term_taxonomy AS tt ON t.term_id = tt.term_id";
    
    		if ( ! empty( $this->query_vars['object_ids'] ) ) {
    			$join .= " INNER JOIN {$wpdb->term_relationships} AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id";
    		}
    

See this hook used in plugins: