A WordPress-centric search engine for devs and theme authors



rest_post_search_query ›

Since5.1.0
Deprecatedn/a
apply_filters( 'rest_post_search_query', $query_args, $request )
Parameters: (2)
  • (array) $query_args Key value array of query var to query value.
    Required: Yes
  • (WP_REST_Request) $request The request used.
    Required: Yes
Defined at:
Codex:

Filters the query arguments for a search request.

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





Source

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