woocommerce_variation_prices, $transient_cached_prices_array[ $price_hash ], $product, $for_display
woocommerce_variation_prices, $transient_cached_prices_array[ $price_hash ], $product, $for_display
Appears in: woocommerce.11.0.0
Hook Type: filter
Displaying hooks found in version: woocommerce.11.0.0apply_filters('woocommerce_variation_prices, $transient_cached_prices_array[ $price_hash ], $product, $for_display') is found 1 times:
- /includes/data-stores/class-wc-product-variable-data-store-cpt.php line 554
* } * @param WC_Product $product The variable product object. * @param bool $for_display Whether prices are being retrieved for display. */ $this->prices_array[ $price_hash ] = apply_filters( 'woocommerce_variation_prices', $transient_cached_prices_array[ $price_hash ], $product, $for_display ); if ( ! is_null( $opposite_price_hash ) && $opposite_price_hash !== $price_hash ) { // phpcs:ignore WooCommerce.Commenting.CommentHooks $this->prices_array[ $opposite_price_hash ] = apply_filters( 'woocommerce_variation_prices', $transient_cached_prices_array[ $opposite_price_hash ], $product, ! $for_display ); } } return $this->prices_array[ $price_hash ];