WP_REST_Search_Handler::get_subtypes() WordPress Method
The WP_REST_Search_Handler::get_subtypes() method is used to get the registered subtypes for a given search type.
WP_REST_Search_Handler::get_subtypes() #
Gets the object subtypes managed by this search handler.
Return
(array) Array of object subtype identifiers.
Source
File: wp-includes/rest-api/search/class-wp-rest-search-handler.php
public function get_subtypes() {
return $this->subtypes;
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 5.0.0 | Introduced. |