get_woocommerce_currency_symbol()
Get Currency symbol.
Currency symbols and names should follow the Unicode CLDR recommendation (https://cldr.unicode.org/translation/currency-names-and-symbols)
Hooks from the function
Return
String
.
Usage
get_woocommerce_currency_symbol( $currency );
- $currency(string)
- Currency. ..
Default: ''
get_woocommerce_currency_symbol() get woocommerce currency symbol code WC 9.8.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 ); }