posts_request
apply_filters_ref_array( ‘posts_request’, string $request , WP_Query $this )
筛选器挂钩:在发送之前筛选完成的SQL查询。
Filter Hook: Filters the completed SQL query before sending.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$request | (string) | 完整的SQL查询。 |
$this | (WP_Query) | WP_查询实例(通过引用传递)。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.0.0 | wp-includes/class-wp-query.php:2925 | 1 | 0 |
posts_request 为WP2原创文章,链接:https://www.wp2.cn/hook/posts_request/