Gets the search handler to handle the current request.
WP_REST_Search_Controller::sanitize_subtypes
Sanitizes the list of subtypes, to ensure only subtypes of the passed type are included.
WP_REST_Search_Controller::get_collection_params
Retrieves the query params for the search results collection.
WP_REST_Search_Controller::prepare_item_for_response
Prepares a single search result for response.
Advertisement
WP_REST_Search_Controller::get_item_schema
Retrieves the item schema, conforming to JSON Schema.
WP_REST_Search_Controller::get_items
Retrieves a collection of search results.
WP_REST_Search_Controller::get_items_permission_check
Checks if a given request has access to search content.
WP_REST_Search_Controller::register_routes
Registers the routes for the objects of the controller.
Advertisement
WP_REST_Search_Controller::__construct
Constructor.
WP_REST_Search_Controller
Core class to search through all WordPress content via the REST API.