WC_REST_Orders_V2_Controller::set_item( WC_Order $order, string $item_type, array $posted )
Wrapper method to create/update order items.
Description Description
When updating, the item ID provided is checked to ensure it is associated with the order.
Parameters Parameters
- $order
-
(Required) order object.
- $item_type
-
(Required) The item type.
- $posted
-
(Required) item provided in the request body.
Source Source
File: includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php