WordPress at a glance
function is not described

WC_REST_Orders_Controller::get_item_schema() public WC 1.0

Get the Order's schema, conforming to JSON Schema.

{} It's a method of the class: WC_REST_Orders_Controller{}

No Hooks.

Return

Array.

Usage

$WC_REST_Orders_Controller = new WC_REST_Orders_Controller();
$WC_REST_Orders_Controller->get_item_schema();

Code of WC_REST_Orders_Controller::get_item_schema() WC 5.0.0

<?php
public function get_item_schema() {
	$schema = parent::get_item_schema();

	$schema['properties']['coupon_lines']['items']['properties']['discount']['readonly'] = true;

	return $schema;
}