Filter hook 'wp_rest_search_handlers'

in WP Core File wp-includes/rest-api.php at line 313

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.
	 */