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() ); }
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. |
Used By | Description |
---|---|
wp-includes/rest-api/endpoints/class-wp-rest-controller.php: WP_REST_Controller::get_fields_for_response() | Gets an array of fields to be included on the response. |
wp-includes/rest-api/endpoints/class-wp-rest-controller.php: WP_REST_Controller::get_object_type() | Retrieves the object type this controller is responsible for managing. |
wp-includes/rest-api/endpoints/class-wp-rest-controller.php: WP_REST_Controller::get_endpoint_args_for_item_schema() | Retrieves an array of endpoint arguments from the item schema for the controller. |
wp-includes/rest-api/endpoints/class-wp-rest-controller.php: WP_REST_Controller::get_public_item_schema() | Retrieves the item’s schema for display / public consumption purposes. |
wp-includes/rest-api/endpoints/class-wp-rest-controller.php: WP_REST_Controller::get_context_param() | Retrieves the magical context param. |
wp-includes/rest-api/endpoints/class-wp-rest-controller.php: WP_REST_Controller::filter_response_by_context() | Filters a response based on the context defined in the schema. |
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