Automattic\WooCommerce\Internal\Admin
Loader::get_currency_settings
Deprecated since migrate to \Automattic\WooCommerce\Internal\Admin\Settings instead.. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
Return an object defining the currency options for the site's current currency
Method of the class: Loader{}
No Hooks.
Returns
Array. Settings for the current currency {
Array of settings.
@type string $code Currency code. @type string $precision Number of decimals. @type string $symbol Symbol for currency.
}
Usage
$result = Loader::get_currency_settings();
Changelog
| Deprecated | migrate to \Automattic\WooCommerce\Internal\Admin\Settings instead. |
Loader::get_currency_settings() Loader::get currency settings code WC 10.6.2
public static function get_currency_settings() {
wc_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '9.9.0', '\Automattic\WooCommerce\Internal\Admin\Settings::get_currency_settings' );
return Settings::get_currency_settings();
}