WC_REST_Orders_V1_Controller::prepare_shipping_lines( $posted, string $action )

Create or update an order shipping method.


Description Description


Parameters Parameters

$posted

(Required) $shipping Item data.

$action

(Required) 'create' to add shipping or 'update' to update it.


Top ↑

Return Return

(WC_Order_Item_Shipping)


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.