From 9afa2848d7e27323e64500fb0e57028215c4739d Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 11 Feb 2015 12:30:54 +0000 Subject: [PATCH] woocommerce_remove_cart_item_from_session with $key and $values MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @helgatheviking $this isn’t needed - WC()->cart to access cart class. --- includes/class-wc-cart.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-cart.php b/includes/class-wc-cart.php index e1147468ef9..85977afccc4 100644 --- a/includes/class-wc-cart.php +++ b/includes/class-wc-cart.php @@ -230,7 +230,7 @@ class WC_Cart { // Flag to indicate the stored cart should be update $update_cart_session = true; wc_add_notice( sprintf( __( '%s has been removed from your cart because it can no longer be purchased. Please contact us if you need assistance.', 'woocommerce' ), $_product->get_title() ), 'error' ); - do_action( 'woocommerce_cart_item_removed_from_session', $_product, $values ); + do_action( 'woocommerce_remove_cart_item_from_session', $key, $values ); } else {