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.


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

	return $search_handlers;
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


Since 5.0.0 Introduced.

Where the hook is called

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!