WordPress开发者和主题制作者的搜索引擎



posts_clauses ›

Since3.1.0
已弃用n/a
apply_filters_ref_array( 'posts_clauses', array( compact( $pieces )
参数: (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
定义在:
文档:

Filters all query clauses at once, for convenience.

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





源码

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