WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_REST_Order_Notes_V1_Controller::get_item_schema() public WC 1.0

Get the Order Notes schema, conforming to JSON Schema.

{} Это метод класса: WC_REST_Order_Notes_V1_Controller{}

Хуков нет.

Возвращает

Массив.

Использование

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

Код WC_REST_Order_Notes_V1_Controller::get_item_schema() WC 4.7.0

<?php
public function get_item_schema() {
	$schema = array(
		'$schema'    => 'http://json-schema.org/draft-04/schema#',
		'title'      => 'order_note',
		'type'       => 'object',
		'properties' => array(
			'id' => array(
				'description' => __( 'Unique identifier for the resource.', 'woocommerce' ),
				'type'        => 'integer',
				'context'     => array( 'view', 'edit' ),
				'readonly'    => true,
			),
			'date_created' => array(
				'description' => __( "The date the order note was created, in the site's timezone.", 'woocommerce' ),
				'type'        => 'date-time',
				'context'     => array( 'view', 'edit' ),
				'readonly'    => true,
			),
			'note' => array(
				'description' => __( 'Order note.', 'woocommerce' ),
				'type'        => 'string',
				'context'     => array( 'view', 'edit' ),
			),
			'customer_note' => array(
				'description' => __( 'Shows/define if the note is only for reference or for the customer (the user will be notified).', 'woocommerce' ),
				'type'        => 'boolean',
				'default'     => false,
				'context'     => array( 'view', 'edit' ),
			),
		),
	);

	return $this->add_additional_fields_schema( $schema );
}