woocommerce_get_variation_prices_hash, $price_hash, $product, $for_display

woocommerce_get_variation_prices_hash, $price_hash, $product, $for_display

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

apply_filters('woocommerce_get_variation_prices_hash, $price_hash, $product, $for_display') is found 1 times:

  • /includes/data-stores/class-wc-product-variable-data-store-cpt.php line 682
    		 * @param array      $price_hash Array of factors used to generate the cache key hash.
    		 * @param WC_Product $product     The variable product object.
    		 * @param bool       $for_display Whether prices are for display (with tax adjustments) or calculations.
    		 */
    		$price_hash = apply_filters( 'woocommerce_get_variation_prices_hash', $price_hash, $product, $for_display );
    
    		return md5( wp_json_encode( $price_hash ) );
    	}
    
    	/**
    	 * Does a child have a weight set?