wpseek.com
WordPress开发者和主题制作者的搜索引擎
rest_{$this->post_type}_query › WordPress过滤钩子
Since5.7.0
已弃用n/a
› apply_filters( "rest_{$this->post_type}_query", $args, $request )
| 参数: (2) |
|
| 定义在: | |
| 文档: |
Filters WP_Query arguments when querying posts via the REST API.
The dynamic portion of the hook name, `$this->post_type`, refers to the post type slug. Possible hook names include: - `rest_post_query` - `rest_page_query` - `rest_attachment_query` Enables adding extra arguments or setting defaults for a post collection request.Related Functions: get_the_post_type_description, get_post_type, set_post_type, get_post_type_labels, get_post_type_object, remove_post_type_support