WordPress at a glance
filter is not described

wp_rest_search_handlers filter-hook . WP 5.0.0

Filters the search handlers to use in the REST search controller.

Usage

add_filter( 'wp_rest_search_handlers', 'filter_function_name_8981' );
function filter_function_name_8981( $search_handlers ){
	// filter...

	return $search_handlers;
}
$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: only a handler for posts

Changelog

Since 5.0.0 Introduced.

Where the hook is called

create_initial_rest_routes()
wp_rest_search_handlers
wp-includes/rest-api.php 262
$search_handlers = apply_filters( 'wp_rest_search_handlers', array( new WP_REST_Post_Search_Handler() ) );

Where the hook is used (in WP core)

Usage not found!