Uses
Uses | Description |
---|---|
wp-includes/rest-api/endpoints/class-wp-rest-controller.php: WP_REST_Controller::add_additional_fields_schema() | Adds the schema from additional fields to a schema array. |
Retrieves the item’s schema, conforming to JSON Schema.
(array) Item schema data.
File: wp-includes/rest-api/endpoints/class-wp-rest-controller.php
public function get_item_schema() { return $this->add_additional_fields_schema( array() ); }
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_item_schema