wordpress / latest / classes / wp_rest_controller / get_item_schema.html

WP_REST_Controller::get_item_schema(): array

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. View all references

public function get_item_schema() {
	return $this->add_additional_fields_schema( array() );
}

Used By

Used By Description

Changelog

Version Description
4.7.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/WP_REST_Controller/get_item_schema