WordPress at Your Fingertips
function is not described

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.


null. Nothing.


$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.
Order item type.
Default: null

Code of WC_Abstract_Order_Data_Store_Interface::delete_items() WC 5.8.0

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