settings['enable_multi_currency'] ) { return $price; } return $woocommerce_wpml->get_multi_currency()->prices->convert_price_amount( $price ); } function get_fixed_currency_price_reverse( $price, $from = null, $base = null ) { if ( ! class_exists( 'SitePress' ) ) { return $price; } global $woocommerce_wpml; if ( WCML_MULTI_CURRENCIES_INDEPENDENT !== $woocommerce_wpml->settings['enable_multi_currency'] ) { return $price; } $price = $woocommerce_wpml->get_multi_currency()->prices->unconvert_price_amount( $price, $from ); return $price; } } BWF_Plugin_Compatibilities::register( new BWF_Compatibility_With_WPML_MultiCurrency(), 'woowpmlmulticurrency' ); }