WP_REST_Controller::get_item_schema(): array In this article Table of ContentsReturn Source Related Changelog ↑ Back to top Retrieves the item’s schema, conforming to JSON Schema. Return array Item schema data. Source public function get_item_schema() { return $this->add_additional_fields_schema( array() ); } View all references View on Trac View on GitHub Related UsesDescriptionWP_REST_Controller::add_additional_fields_schema()wp-includes/rest-api/endpoints/class-wp-rest-controller.phpAdds the schema from additional fields to a schema array. Used byDescriptionWP_REST_Controller::get_fields_for_response()wp-includes/rest-api/endpoints/class-wp-rest-controller.phpGets an array of fields to be included on the response. WP_REST_Controller::get_object_type()wp-includes/rest-api/endpoints/class-wp-rest-controller.phpRetrieves the object type this controller is responsible for managing. WP_REST_Controller::get_endpoint_args_for_item_schema()wp-includes/rest-api/endpoints/class-wp-rest-controller.phpRetrieves an array of endpoint arguments from the item schema for the controller. WP_REST_Controller::get_public_item_schema()wp-includes/rest-api/endpoints/class-wp-rest-controller.phpRetrieves the item’s schema for display / public consumption purposes. WP_REST_Controller::get_context_param()wp-includes/rest-api/endpoints/class-wp-rest-controller.phpRetrieves the magical context param. WP_REST_Controller::filter_response_by_context()wp-includes/rest-api/endpoints/class-wp-rest-controller.phpFilters a response based on the context defined in the schema. Show 1 moreShow less Changelog VersionDescription4.7.0Introduced. User Contributed Notes You must log in before being able to contribute a note or feedback.
User Contributed Notes
You must log in before being able to contribute a note or feedback.