Automattic\WooCommerce\Internal\Orders
OrderActionsRestController::get_schema_for_order_actions
Get the schema for all order actions that don't have a separate schema.
Method of the class: OrderActionsRestController{}
No Hooks.
Returns
Array
.
Usage
$OrderActionsRestController = new OrderActionsRestController(); $OrderActionsRestController->get_schema_for_order_actions(): array;
OrderActionsRestController::get_schema_for_order_actions() OrderActionsRestController::get schema for order actions code WC 9.8.5
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; }