terms_clauses

terms_clauses

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

See hook in core

Displaying hooks found in version: wordpress-7.0

apply_filters('terms_clauses') is found 1 times:

  • /wp-includes/class-wp-term-query.php line 728
    		 * }
    		 * @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   = $clauses['fields'] ?? '';
    		$join     = $clauses['join'] ?? '';
    		$where    = $clauses['where'] ?? '';
    		$distinct = $clauses['distinct'] ?? '';
    		$orderby  = $clauses['orderby'] ?? '';
    

See this hook used in plugins: