get_terms_fields

get_terms_fields

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('get_terms_fields') is found 1 times:

  • /wp-includes/class-wp-term-query.php line 699
    		 * @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";
    			$distinct = 'DISTINCT';
    

See this hook used in plugins: