get_woocommerce_currency_symbol()WC 1.0

Get Currency symbol.

Currency symbols and names should follow the Unicode CLDR recommendation (https://cldr.unicode.org/translation/currency-names-and-symbols)

Хуки из функции

Возвращает

Строку.

Использование

get_woocommerce_currency_symbol( $currency );
$currency(строка)
Currency. (default: '').
По умолчанию: ''

Код get_woocommerce_currency_symbol() WC 6.6.1

function get_woocommerce_currency_symbol( $currency = '' ) {
	if ( ! $currency ) {
		$currency = get_woocommerce_currency();
	}

	$symbols = get_woocommerce_currency_symbols();

	$currency_symbol = isset( $symbols[ $currency ] ) ? $symbols[ $currency ] : '';

	return apply_filters( 'woocommerce_currency_symbol', $currency_symbol, $currency );
}