get_setting( $key, $default ); } } if ( ! function_exists( '\WCML\functions\updateSetting' ) ) { /** * @param string $key * @param mixed $value * @param bool $autoload * * @return void */ function updateSetting( $key, $value, $autoload = false ) { make( woocommerce_wpml::class )->update_setting( $key, $value, $autoload ); } } if ( ! function_exists( '\WCML\functions\getClientCurrency' ) ) { /** * @return string */ function getClientCurrency() { return make( \WCML_Multi_Currency::class )->get_client_currency(); } } if ( ! function_exists( 'WCML\functions\isCli' ) ) { /** * @return bool */ function isCli() { return defined( 'WP_CLI' ) && WP_CLI; } }