Automattic\WooCommerce\Internal\Orders

OrderActionsRestController::get_schema_for_order_actions()privateWC 1.0

Get the schema for both the GET and the POST requests.

Метод класса: OrderActionsRestController{}

Хуков нет.

Возвращает

Массив[].

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

// private - только в коде основоного (родительского) класса
$result = $this->get_schema_for_order_actions(): array;

Код OrderActionsRestController::get_schema_for_order_actions() WC 9.5.1

private function get_schema_for_order_actions(): array {
	$schema['properties'] = array(
		'message' => array(
			'description' => __( 'A message indicating that the action completed successfully.', 'woocommerce' ),
			'type'        => 'string',
			'context'     => array( 'view', 'edit' ),
			'readonly'    => true,
		),
	);
	return $schema;
}