WC_Abstract_Order_Data_Store_Interface::delete_items() public WC 1.0
Remove all line items (products, coupons, shipping, taxes) from the order.
{} It's a method of the class: WC_Abstract_Order_Data_Store_Interface{}
No Hooks.
Return
Null. Nothing.
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
Code of WC_Abstract_Order_Data_Store_Interface::delete_items() WC Abstract Order Data Store Interface::delete items WC 5.0.0
public function delete_items( $order, $type = null );