Custom exchange rate host in multicurrency
-
Hello!
I am trying to add a custom exchange rate api supplier for the multicurrency automatic updates in my child themes’ functions.php, however I cannot get any options to actually show up in the settings.
I guess I am adding the action to the wrong hook, is there a better place to add the extension after the class has just been initialized?
add_action( 'wcml_before_multi_currency_ui', 'extend_wcml', 15 ); function extend_wcml() { global $woocommerce_wpml; $woocommerce_wpml->multi_currency->exchange_rate_services->add_service( 'exchangeratehost', new WCML_Exchange_Rates_ExchangerateHost() ); } /** * Class WCML_Exchange_Rates_ExchangerateHost */ class WCML_Exchange_Rates_ExchangerateHost extends WCML_Exchange_Rate_Service {
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Custom exchange rate host in multicurrency’ is closed to new replies.