WP_REST_Controller::get_item_schema()
Retrieves the item’s schema, conforming to JSON Schema.
Return
(array) Item schema data.
Source
File: wp-includes/rest-api/endpoints/class-wp-rest-controller.php
public function get_item_schema() { return $this->add_additional_fields_schema( array() ); }
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/WP_REST_Controller/get_item_schema