WC_Order_Item_Data_Store_Interface::delete_order_item()
Delete an order item.
Method of the class: WC_Order_Item_Data_Store_Interface{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Order_Item_Data_Store_Interface = new WC_Order_Item_Data_Store_Interface(); $WC_Order_Item_Data_Store_Interface->delete_order_item( $item_id );
- $item_id(int) (required)
- Item ID.
WC_Order_Item_Data_Store_Interface::delete_order_item() WC Order Item Data Store Interface::delete order item code WC 9.4.2
public function delete_order_item( $item_id );