Description
Filters the search handlers to use in the REST search controller.
Occurrences
Filename | Line Number |
---|---|
wp-includes/rest-api.php | 313 |
Parameters
Type | Name | Description |
---|---|---|
array | $search_handlers | 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. |
PHP Doc
/**
* Filters the search handlers to use in the REST search controller.
*
* @since 5.0.0
*
* @param array $search_handlers 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.
*/