woocommerce_cart_item_restored action-hookWC 1.0

Usage

add_action( 'woocommerce_cart_item_restored', 'wp_kama_woocommerce_cart_item_restored_action', 10, 2 );

/**
 * Function for `woocommerce_cart_item_restored` action-hook.
 * 
 * @param  $cart_item_key 
 * @param  $that          
 *
 * @return void
 */
function wp_kama_woocommerce_cart_item_restored_action( $cart_item_key, $that ){

	// action...
}
$cart_item_key
-
$that
-

Where the hook is called

WC_Cart::restore_cart_item()
woocommerce_cart_item_restored
woocommerce/includes/class-wc-cart.php 1328
do_action( 'woocommerce_cart_item_restored', $cart_item_key, $this );

Where the hook is used in WooCommerce

woocommerce/includes/class-wc-cart-session.php 57
add_action( 'woocommerce_cart_item_restored', array( $this, 'persistent_cart_update' ) );
woocommerce/includes/class-wc-cart.php 109
add_action( 'woocommerce_cart_item_restored', array( $this, 'calculate_totals' ), 20, 0 );