WC_Abstract_Order_Data_Store_Interface::delete_items
Remove all line items (products, coupons, shipping, taxes) from the order.
Method of the class: WC_Abstract_Order_Data_Store_Interface{}
No Hooks.
Returns
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() WC Abstract Order Data Store Interface::delete items code WC 10.7.0
public function delete_items( $order, $type = null );