terms_clauses

terms_clauses

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('terms_clauses') is found 1 times:

  • /wp-includes/class-wp-term-query.php line 731
    		 * }
    		 * @param string[] $taxonomies An array of taxonomy names.
    		 * @param array    $args       An array of term query arguments.
    		 */
    		$clauses = apply_filters( 'terms_clauses', compact( $pieces ), $taxonomies, $args );
    
    		$fields   = isset( $clauses['fields'] ) ? $clauses['fields'] : '';
    		$join     = isset( $clauses['join'] ) ? $clauses['join'] : '';
    		$where    = isset( $clauses['where'] ) ? $clauses['where'] : '';
    		$distinct = isset( $clauses['distinct'] ) ? $clauses['distinct'] : '';
    		$orderby  = isset( $clauses['orderby'] ) ? $clauses['orderby'] : '';
    

See this hook used in plugins: