WC_REST_Orders_V1_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

$item_type

(Required)

$posted

(Required) item provided in the request body


Top ↑

Source Source

File: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php


			


Top ↑

User Contributed Notes User Contributed Notes

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