I think I’ve managed to figure this out:
add_filter('wc_price_history_lowest_price_html_raw_value_taxed', function ($price, $wc_product) {
function wcml_get_currency_rate($currency_code)
{
if (class_exists('WCML_Multi_Currency')) {
$wcml_multi_currency = new \WCML_Multi_Currency();
$currencies = $wcml_multi_currency->get_currencies();
if (isset($currencies[$currency_code])) {
return $currencies[$currency_code]['rate'];
}
}
return 1;
}
if (class_exists('WCML_Multi_Currency')) {
$current_currency = get_woocommerce_currency();
$default_currency = get_option('woocommerce_currency');
if ($current_currency !== $default_currency) {
$exchange_rate = wcml_get_currency_rate($current_currency);
$price = $price * $exchange_rate;
}
}
return $price;
}, 10, 2);