posts_results
apply_filters_ref_array( ‘posts_results’, WP_Post[] $posts , WP_Query $this )
过滤器::在状态检查之前过滤原始post结果数组。
Filter Hook: Filters the raw post results array, prior to status checks.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$posts | (WP_Post[]) | post对象的数组。 |
$this | (WP_Query) | WP_查询实例(通过引用传递)。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.3.0 | wp-includes/class-wp-query.php:3038 | 1 | 0 |
posts_results 为WP2原创文章,链接:https://www.wp2.cn/hook/posts_results/