woocommerce_get_variation_prices_hash
Usage
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
- -
Where the hook is called
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 ) ) );