WC_Abstract_Order_Data_Store_Interface::delete_items()publicWC 1.0

Remove all line items (products, coupons, shipping, taxes) from the order.

Method of the class: WC_Abstract_Order_Data_Store_Interface{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Abstract_Order_Data_Store_Interface = new WC_Abstract_Order_Data_Store_Interface();
$WC_Abstract_Order_Data_Store_Interface->delete_items( $order, $type );
$order(WC_Order) (required)
Order object.
$type(string)
Order item type.
Default: null

WC_Abstract_Order_Data_Store_Interface::delete_items() code WC 8.7.0

public function delete_items( $order, $type = null );