WordPress at Your Fingertips
filter is not described

posts_clauses_request filter-hook . WP 3.1.0

Filters all query clauses at once, for convenience.

For use by caching plugins.

Covers the WHERE, GROUP BY, JOIN, ORDER BY, DISTINCT, fields (SELECT), and LIMITS clauses.


add_filter( 'posts_clauses_request', 'filter_function_name_7615', 10, 2 );
function filter_function_name_7615( $pieces, $query ){
	// filter...

	return $pieces;
Associative array of the pieces of the query.
The WP_Query instance (passed by reference).


Since 3.1.0 Introduced.

Where the hook is called

wp-includes/class-wp-query.php 2903
$clauses = (array) apply_filters_ref_array( 'posts_clauses_request', array( compact( $pieces ), &$this ) );

Where in WP core the hook is used WordPress

Usage not found.