WordPress at a glance
function is not described


Loader::get_currency_settings() public WC 1.0

Return an object defining the currecy options for the site's current currency

{} It's a method of the class: Loader{}

Hooks from the method

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.



$result = Loader::get_currency_settings();

Code of Loader::get_currency_settings() WC 5.3.0

public static function get_currency_settings() {
	$code = get_woocommerce_currency();

	return apply_filters(
			'code'              => $code,
			'precision'         => wc_get_price_decimals(),
			'symbol'            => html_entity_decode( get_woocommerce_currency_symbol( $code ) ),
			'symbolPosition'    => get_option( 'woocommerce_currency_pos' ),
			'decimalSeparator'  => wc_get_price_decimal_separator(),
			'thousandSeparator' => wc_get_price_thousand_separator(),
			'priceFormat'       => html_entity_decode( get_woocommerce_price_format() ),