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

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

add_filter( 'woocommerce_cart_hash_key', 'wp_kama_woocommerce_cart_hash_key_filter' );

/**
 * Function for `woocommerce_cart_hash_key` filter-hook.
 * 
 * @param  $string 
 *
 * @return 
 */
function wp_kama_woocommerce_cart_hash_key_filter( $string ){

	// filter...
	return $string;
}
$string
-

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

WC_Frontend_Scripts::get_script_data()
woocommerce_cart_hash_key
woocommerce/includes/class-wc-frontend-scripts.php 568
'cart_hash_key'   => apply_filters( 'woocommerce_cart_hash_key', 'wc_cart_hash_' . md5( get_current_blog_id() . '_' . get_site_url( get_current_blog_id(), '/' ) . get_template() ) ),

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

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