woocommerce_cart_id

woocommerce_cart_id

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_cart_id') is found 1 times:

  • /includes/class-wc-cart.php line 1016
    1012
    1013
    1014
    1015
    1016
    1017
    1018
    1019
    1020
    1021
    1022
            }
            $id_parts[] = $cart_item_data_key;
        }
     
        return apply_filters( 'woocommerce_cart_id', md5( implode( '_', $id_parts ) ), $product_id, $variation_id, $variation, $cart_item_data );
    }
     
    /**
     * Add a product to the cart.
     *
     * @throws Exception Plugins can throw an exception to prevent adding to cart.