Uma área de pesquisa sobre o WordPress para devs e autores do tema



posts_clauses ›

Desde3.1.0
Obsoleton/a
apply_filters_ref_array( 'posts_clauses', array( compact( $pieces )
Parâmetros: (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
Definido em:
Codex:

Filters all query clauses at once, for convenience.

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





Fonte

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