WP_REST_Controller::get_item_schema()
Retrieves the item's schema, conforming to JSON Schema.
Method of the class: WP_REST_Controller{}
No Hooks.
Return
Array
. Item schema data.
Usage
$WP_REST_Controller = new WP_REST_Controller(); $WP_REST_Controller->get_item_schema();
Changelog
Since 4.7.0 | Introduced. |
WP_REST_Controller::get_item_schema() WP REST Controller::get item schema code WP 6.6.2
public function get_item_schema() { return $this->add_additional_fields_schema( array() ); }