wp_rest_search_handlers

wp_rest_search_handlers

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('wp_rest_search_handlers') is found 1 times:

  • /wp-includes/rest-api.php line 313
    	 * @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.
    	 */
    	$search_handlers = apply_filters( 'wp_rest_search_handlers', $search_handlers );
    
    	$controller = new WP_REST_Search_Controller( $search_handlers );
    	$controller->register_routes();
    
    	// Block Renderer.
    	$controller = new WP_REST_Block_Renderer_Controller();
    

See this hook used in plugins: