woocommerce_cart_hash хук-фильтрWC 1.0

Использование

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
-

Где вызывается хук

WC_Cart::get_cart_hash()
woocommerce_cart_hash
woocommerce/includes/class-wc-cart.php 2166
return apply_filters( 'woocommerce_cart_hash', $hash, $cart_session );

Где используется хук в WooCommerce

Использование не найдено.