posts_clauses

posts_clauses钩子是Wordpress钩子,过滤器::为了方便起见,一次过滤所有查询子句。

apply_filters_ref_array( ‘posts_clauses’, string[] $clauses, WP_Query $this )

说明(Description)

涵盖WHERE、GROUP BY、JOIN、ORDER BY、DISTINCT、fields(SELECT)和LIMITS子句。


参数(Parameters)

参数类型说明
$clauses(string[])查询子句的关联数组。
$this(WP_Query)WP_查询实例(通过引用传递)。

源码(Source)

//暂无
更新版本源码位置使用被使用
3.1.0wp-includes/class-wp-query.php:276610
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索