posts_results钩子是Wordpress钩子,过滤器::在状态检查之前过滤原始post结果数组。
apply_filters_ref_array( ‘posts_results’, WP_Post[] $posts, WP_Query $this )
参数(Parameters)
| 参数 | 类型 | 说明 |
|---|---|---|
| $posts | (WP_Post[]) | post对象的数组。 |
| $this | (WP_Query) | WP_查询实例(通过引用传递)。 |
源码(Source)
//暂无
| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| 2.3.0 | wp-includes/class-wp-query.php:3038 | 1 | 0 |





















