Uses
Uses | Description |
---|---|
wp-includes/rest-api/endpoints/class-wp-rest-controller.php: WP_REST_Controller::get_item_schema() | Retrieves the item’s schema, conforming to JSON Schema. |
Retrieves the object type this controller is responsible for managing.
(string) Object type for the controller.
File: wp-includes/rest-api/endpoints/class-wp-rest-controller.php
protected function get_object_type() { $schema = $this->get_item_schema(); if ( ! $schema || ! isset( $schema['title'] ) ) { return null; } return $schema['title']; }
Version | Description |
---|---|
4.7.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rest_controller/get_object_type