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

WC_REST_Order_Refunds_Controller::get_item_schema() public WC 1.0

Get the refund schema, conforming to JSON Schema.

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

Хуков нет.

Возвращает

Массив.

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

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

Код WC_REST_Order_Refunds_Controller::get_item_schema() WC 5.5.2

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

	$schema['properties']['line_items']['items']['properties']['refund_total'] = array(
		'description' => __( 'Amount that will be refunded for this line item (excluding taxes).', 'woocommerce' ),
		'type'        => 'number',
		'context'     => array( 'edit' ),
		'readonly'    => true,
	);

	$schema['properties']['line_items']['items']['properties']['taxes']['items']['properties']['refund_total'] = array(
		'description' => __( 'Amount that will be refunded for this tax.', 'woocommerce' ),
		'type'        => 'number',
		'context'     => array( 'edit' ),
		'readonly'    => true,
	);

	return $schema;
}