woocommerce_cart_id

woocommerce_cart_id

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_cart_id') is found 1 times:

  • /includes/class-wc-cart.php line 1010
    			}
    			$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.