woocommerce_restock_refunded_item

The WooCommerce woocommerce restock refunded item hook.

Description

do_action( 'woocommerce_restock_refunded_item', (unknown) $product_get_id, (unknown) $old_stock, (unknown) $new_stock, (unknown) $order, (unknown) $product ); 

Parameters (5)

0. $product_get_id (unknown)
The product get id.
1. $old_stock (unknown)
The old stock.
2. $new_stock (unknown)
The new stock.
3. $order (unknown)
The order.
4. $product (unknown)
The product.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'woocommerce_restock_refunded_item', $product_get_id, $old_stock, $new_stock, $order, $product ); 
The following example is for adding a hook callback.
  1. // define the woocommerce_restock_refunded_item callback 
  2. function action_woocommerce_restock_refunded_item( $product_get_id, $old_stock, $new_stock, $order, $product ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'woocommerce_restock_refunded_item', 'action_woocommerce_restock_refunded_item', 10, 5 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'woocommerce_restock_refunded_item', 'action_woocommerce_restock_refunded_item', 10, 5 ); 

Defined (1)

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

/includes/wc-order-functions.php  
  1. do_action( 'woocommerce_restock_refunded_item', $product->get_id(), $old_stock, $new_stock, $order, $product );