Automattic\WooCommerce\Internal\Orders
OrderActionsRestController::get_schema_for_order_actions
Get the schema for all order actions that don't have a separate schema.
Метод класса: OrderActionsRestController{}
Хуков нет.
Возвращает
Массив.
Использование
$OrderActionsRestController = new OrderActionsRestController(); $OrderActionsRestController->get_schema_for_order_actions(): array;
Код OrderActionsRestController::get_schema_for_order_actions() OrderActionsRestController::get schema for order actions WC 10.3.4
public function get_schema_for_order_actions(): array {
$schema = array(
'$schema' => 'http://json-schema.org/draft-04/schema#',
'title' => __( 'Order Actions', 'woocommerce' ),
'type' => 'object',
'properties' => array(
'message' => array(
'description' => __( 'A message indicating that the action completed successfully.', 'woocommerce' ),
'type' => 'string',
'context' => array( 'edit' ),
'readonly' => true,
),
),
);
return $schema;
}