posts_distinct_request
apply_filters_ref_array( ‘posts_distinct_request’, string $distinct , WP_Query $this )
过滤器::过滤查询的DISTINCT子句。
Filter Hook: Filters the DISTINCT clause of the query.
说明(Description)
供缓存插件使用。
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$distinct | (string) | 查询的DISTINCT子句。 |
$this | (WP_Query) | WP_查询实例(通过引用传递)。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.5.0 | wp-includes/class-wp-query.php:2851 | 1 | 0 |
posts_distinct_request 为WP2原创文章,链接:https://www.wp2.cn/hook/posts_distinct_request/