A WordPress-centric search engine for devs and theme authors



posts_clauses ›

Since3.1.0
Deprecatedn/a
apply_filters_ref_array( 'posts_clauses', array( compact( $pieces )
Parameters: (2)
  • (string[]) $clauses Associative array of the clauses for 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.

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





Source

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