apply_filters( 'wp_rest_search_handlers', array $search_handlers )
Filters the search handlers to use in the REST search controller.
Parameters
- $search_handlers
-
(array) List of search handlers to use in the controller. Each search handler instance must extend the
WP_REST_Search_Handler
class. Default is only a handler for posts.
Source
File: wp-includes/rest-api.php
Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_rest_search_handlers