WP_REST_Search_Handler::get_type() WordPress Method
The WP_REST_Search_Handler::get_type() method is used to get the search type for a given request. This can be used to determine the search type for a given request, and is used by the default search handler to limit the search type for a given request.
WP_REST_Search_Handler::get_type() #
Gets the object type managed by this search handler.
Return
(string) Object type identifier.
Source
File: wp-includes/rest-api/search/class-wp-rest-search-handler.php
public function get_type() { return $this->type; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |