This thread is resolved. Here is a description of the problem and solution.
The user would like to know how to programmatically detect the connected currency and get the exchange value?
We have recently added a PHP function "wcml_get_woocommerce_currency" in WooCommerce Multilingual 4.6.7 to get default WC currency value from DB.
We can also use the following code:
global $woocommerce_wpml; $woocommerce_wpml->multi_currency->get_currencies();
This function should return an array with all the settings and you should find something there for your needs. This is not a proper way, though, to call our functions. If we need a specific hook, we should suggest it here https://wpml.org/suggest-a-new-feature-for-wpml/
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.