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.7.2

apply_filters('wp_rest_search_handlers') is found 1 times:

  • /wp-includes/rest-api.php line 342
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    * @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: