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.


Top ↑

Source Source

File: includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php




Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.