WordPress开发者和主题制作者的搜索引擎



rest_post_search_query ›

Since5.1.0
已弃用n/a
apply_filters( 'rest_post_search_query', $query_args, $request )
参数: (2)
  • (array) $query_args Key value array of query var to query value.
    Required: Yes
  • (WP_REST_Request) $request The request used.
    Required: Yes
定义在:
文档:

Filters the query arguments for a search request.

Enables adding extra arguments or setting defaults for a post search request.





源码

$query_args = apply_filters( 'rest_post_search_query', $query_args, $request );