WC_REST_Orders_V1_Controller::prepare_fee_lines( array $posted, string $action )

Create or update an order fee.


Description Description


Parameters Parameters

$posted

(Required) Item data.

$action

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


Top ↑

Return Return

(WC_Order_Item_Fee)


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.