A WordPress-centric search engine for devs and theme authors



posts_clauses_request ›

Since3.1.0
Deprecatedn/a
apply_filters_ref_array( 'posts_clauses_request', array( compact( $pieces )
Parameters: (2)
  • (array) $pieces The pieces of the query.
    Required: Yes
  • (WP_Query) $this The WP_Query instance (passed by reference).
    Required: Yes
Defined at:
Codex:

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.





Source

$clauses = (array) apply_filters_ref_array( 'posts_clauses_request', array( compact( $pieces ), &$this ) );