woocommerce_delete_order_item

The WooCommerce woocommerce delete order item function.

Description

woocommerce_delete_order_item( $item_id ); 

Parameters (1)

0. $item_id
The item id.

Usage

  1. if ( !function_exists( 'woocommerce_delete_order_item' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-deprecated-functions.php'; 
  3.  
  4. // The item id. 
  5. $item_id = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = woocommerce_delete_order_item($item_id); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-deprecated-functions.php  
  1. function woocommerce_delete_order_item( $item_id ) { 
  2. wc_deprecated_function( __FUNCTION__, '3.0', 'wc_delete_order_item' ); 
  3. return wc_delete_order_item( $item_id );