Filters all query clauses at once, for convenience.
Description
For use by caching plugins. Covers the WHERE, GROUP BY, JOIN, ORDER BY, DISTINCT, fields (SELECT), and LIMIT clauses.
Parameters
$clausesstring[]
{ Associative array of the clauses for the query. @type string $where The WHERE clause of the query. @type string $groupby The GROUP BY clause of the query. @type string $join The JOIN clause of the query. @type string $orderby The ORDER BY clause of the query. @type string $distinct The DISTINCT clause of the query. @type string $fields The SELECT clause of the query. @type string $limits The LIMIT clause of the query.}
3149* @type string$distinct The DISTINCT clause of the query.3150* @type string$fields The SELECT clause of the query.3151* @type string$limits The LIMIT clause of the query.3152*}3153* @param WP_Query$query The WP_Query instance(passed by reference).3154*/3155$clauses=(array)apply_filters_ref_array('posts_clauses_request',array(compact($pieces),&$this));31563157$where=isset($clauses['where'])?$clauses['where']:'';3158$groupby=isset($clauses['groupby'])?$clauses['groupby']:'';3159$join=isset($clauses['join'])?$clauses['join']:'';3160$orderby=isset($clauses['orderby'])?$clauses['orderby']:'';3161$distinct=isset($clauses['distinct'])?$clauses['distinct']:'';
History
Introduced in 3.1.0. Unchanged from 6.7.7 through 7.1.0.