woocommerce_cart_hash
Usage
add_filter( 'woocommerce_cart_hash', 'wp_kama_woocommerce_cart_hash_filter', 10, 2 ); /** * Function for `woocommerce_cart_hash` filter-hook. * * @param $hash * @param $cart_session * * @return */ function wp_kama_woocommerce_cart_hash_filter( $hash, $cart_session ){ // filter... return $hash; }
- $hash
- -
- $cart_session
- -
Where the hook is called
woocommerce_cart_hash
woocommerce/includes/class-wc-cart.php 2156
return apply_filters( 'woocommerce_cart_hash', $hash, $cart_session );