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

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

add_filter( 'woocommerce_get_variation_prices_hash', 'wp_kama_woocommerce_get_variation_prices_hash_filter', 10, 3 );

/**
 * Function for `woocommerce_get_variation_prices_hash` filter-hook.
 * 
 * @param  $price_hash  
 * @param  $product     
 * @param  $for_display 
 *
 * @return 
 */
function wp_kama_woocommerce_get_variation_prices_hash_filter( $price_hash, $product, $for_display ){

	// filter...
	return $price_hash;
}
$price_hash
-
$product
-
$for_display
-

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

WC_Product_Variable_Data_Store_CPT::get_price_hash()
woocommerce_get_variation_prices_hash
woocommerce/includes/data-stores/class-wc-product-variable-data-store-cpt.php 425
return md5( wp_json_encode( apply_filters( 'woocommerce_get_variation_prices_hash', $price_hash, $product, $for_display ) ) );

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

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