woocommerce_restock_refunded_item
Usage
add_action( 'woocommerce_restock_refunded_item', 'wp_kama_woocommerce_restock_refunded_item_action', 10, 5 );
/**
* Function for `woocommerce_restock_refunded_item` action-hook.
*
* @param $product_id
* @param $old_stock
* @param $new_stock
* @param $order
* @param $product
*
* @return void
*/
function wp_kama_woocommerce_restock_refunded_item_action( $product_id, $old_stock, $new_stock, $order, $product ){
// action...
}
- $product_id
- -
- $old_stock
- -
- $new_stock
- -
- $order
- -
- $product
- -
Where the hook is called
woocommerce_restock_refunded_item
woocommerce/includes/wc-order-functions.php 860
do_action( 'woocommerce_restock_refunded_item', $product->get_id(), $old_stock, $new_stock, $order, $product );