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_168' );
function filter_function_name_168( $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 280
$search_handlers = apply_filters( 'wp_rest_search_handlers', array( new WP_REST_Post_Search_Handler() ) );

Where in WP core the hook is used WordPress

Usage not found.