apply_filters( 'rest_post_format_search_query', array $query_args, WP_REST_Request $request )
Filters the query arguments for a REST API search request.
Description
Enables adding extra arguments or setting defaults for a post format search request.
Parameters
- $query_args
-
(array) Key value array of query var to query value.
- $request
-
(WP_REST_Request) The request used.
Source
File: wp-includes/rest-api/search/class-wp-rest-post-format-search-handler.php
Changelog
Version | Description |
---|---|
5.6.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_post_format_search_query