woocommerce_restore_cart_item

woocommerce_restore_cart_item

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

do_action('woocommerce_restore_cart_item') is found 1 times:

  • /includes/class-wc-cart.php line 1334
    			$restore_item                                  = $this->removed_cart_contents[ $cart_item_key ];
    			$this->cart_contents[ $cart_item_key ]         = $restore_item;
    			$this->cart_contents[ $cart_item_key ]['data'] = wc_get_product( $restore_item['variation_id'] ? $restore_item['variation_id'] : $restore_item['product_id'] );
    
    			do_action( 'woocommerce_restore_cart_item', $cart_item_key, $this );
    
    			unset( $this->removed_cart_contents[ $cart_item_key ] );
    
    			do_action( 'woocommerce_cart_item_restored', $cart_item_key, $this );
    
    			return true;