woocommerce_use_legacy_get_variations_price_hash
woocommerce_use_legacy_get_variations_price_hash
Appears in: woocommerce.10.5.2
Hook Type: filter
Displaying hooks found in version: woocommerce.10.5.2apply_filters('woocommerce_use_legacy_get_variations_price_hash') is found 1 times:
- /includes/data-stores/class-wc-product-variable-data-store-cpt.php line 596
* @param bool $use_legacy True to use the legacy algorithm (default), false to use CallbackUtil * @param WC_Product $product The product object. * @param bool $for_display If taxes should be calculated or not. */ $use_legacy_algorithm = apply_filters( 'woocommerce_use_legacy_get_variations_price_hash', true, $product, $for_display ); if ( $use_legacy_algorithm ) { global $wp_filter; foreach ( $filter_names as $filter_name ) { if ( ! empty( $wp_filter[ $filter_name ] ) ) {