woocommerce_get_variation_prices_hash хук-фильтр . WC 1.0
Использование
add_filter( 'woocommerce_get_variation_prices_hash', 'filter_function_name_301', 10, 3 ); function filter_function_name_301( $price_hash, $product, $for_display ){ // filter... return $price_hash; }
- $price_hash
- -
- $product
- -
- $for_display
- -
Где вызывается хук
woocommerce_get_variation_prices_hash
woocommerce/includes/data-stores/class-wc-product-variable-data-store-cpt.php 413
return md5( wp_json_encode( apply_filters( 'woocommerce_get_variation_prices_hash', $price_hash, $product, $for_display ) ) );