woocommerce_cart_updated

woocommerce_cart_updated

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

do_action('woocommerce_cart_updated') is found 1 times:

  • /includes/class-wc-cart-session.php line 334
    		WC()->session->set( 'coupon_discount_totals', $this->cart->get_coupon_discount_totals() );
    		WC()->session->set( 'coupon_discount_tax_totals', $this->cart->get_coupon_discount_tax_totals() );
    		WC()->session->set( 'removed_cart_contents', $this->cart->get_removed_cart_contents() );
    
    		do_action( 'woocommerce_cart_updated' );
    	}
    
    	/**
    	 * Returns the contents of the cart in an array without the 'data' element.
    	 *
    	 * @return array contents of the cart
    

See this hook used in plugins: