apply_filters( ‘wp_rest_search_handlers’, array $search_handlers )

In this article

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

Parameters

$search_handlersarray
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.

Source

$search_handlers = apply_filters( 'wp_rest_search_handlers', $search_handlers );

Changelog

VersionDescription
5.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.