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