Currency converter functions:
// get settings$multiCurrencySettings
= WOOMULTI_CURRENCY_Data::get_ins();
$wmcCurrencies = $multiCurrencySettings->get_list_currencies();
//get list currency
$currentCurrency = $multiCurrencySettings->get_current_currency();
// get current currency
$currentCurrencyRate
= floatval( $wmcCurrencies[ $currentCurrency ]['rate'] );
// get rate of current currency
-
To get the current currency rate:
$currentCurrencyRate = 1;
if(class_exists('WOOMULTI_CURRENCY_Data')) {
$multiCurrencySettings = WOOMULTI_CURRENCY_Data::get_ins();
$wmcCurrencies = $multiCurrencySettings->get_list_currencies();
$currentCurrency = $multiCurrencySettings->get_current_currency();
$currentCurrencyRate = floatval( $wmcCurrencies[ $currentCurrency ]['rate'] );
}