wp_rest_search_handlers

SummerySummery

Filters the search handlers to use in the REST search controller.

Syntax

apply_filters( 'wp_rest_search_handlers', array $search_handlers )

ParametersParameters

$search_handlers

(array) 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.

SourceSource

File: wp-includes/rest-api.php

ChangelogChangelog

Changelog
Version Description
5.0.0 Introduced.
Scroll to Top