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

WC_REST_Network_Orders_V2_Controller::get_public_item_schema() public WC 1.0

Retrieves the item's schema for display / public consumption purposes.

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

Хуков нет.

Возвращает

Массив. Public item schema data.

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

$WC_REST_Network_Orders_V2_Controller = new WC_REST_Network_Orders_V2_Controller();
$WC_REST_Network_Orders_V2_Controller->get_public_item_schema();

Код WC_REST_Network_Orders_V2_Controller::get_public_item_schema() WC 4.7.1

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

	$schema['properties']['blog']              = array(
		'description' => __( 'Blog id of the record on the multisite.', 'woocommerce' ),
		'type'        => 'integer',
		'context'     => array( 'view' ),
		'readonly'    => true,
	);
	$schema['properties']['edit_url']          = array(
		'description' => __( 'URL to edit the order', 'woocommerce' ),
		'type'        => 'string',
		'context'     => array( 'view' ),
		'readonly'    => true,
	);
	$schema['properties']['customer'][]        = array(
		'description' => __( 'Name of the customer for the order', 'woocommerce' ),
		'type'        => 'string',
		'context'     => array( 'view' ),
		'readonly'    => true,
	);
	$schema['properties']['status_name'][]     = array(
		'description' => __( 'Order Status', 'woocommerce' ),
		'type'        => 'string',
		'context'     => array( 'view' ),
		'readonly'    => true,
	);
	$schema['properties']['formatted_total'][] = array(
		'description' => __( 'Order total formatted for locale', 'woocommerce' ),
		'type'        => 'string',
		'context'     => array( 'view' ),
		'readonly'    => true,
	);

	return $schema;
}