woocommerce_add_to_cart_hash
Usage
add_filter( 'woocommerce_add_to_cart_hash', 'wp_kama_woocommerce_add_to_cart_hash_filter', 10, 2 ); /** * Function for `woocommerce_add_to_cart_hash` filter-hook. * * @param $array * @param $string * * @return */ function wp_kama_woocommerce_add_to_cart_hash_filter( $array, $string ){ // filter... return $array; }
- $array
- -
- $string
- -
Where the hook is called
woocommerce_add_to_cart_hash
woocommerce/includes/class-wc-cart.php 2154
$hash = apply_filters_deprecated( 'woocommerce_add_to_cart_hash', array( $hash, $cart_session ), '3.6.0', 'woocommerce_cart_hash' );