Currency::get_currency_symbol( string $code )
Return the currency symbol to use as defined in the currency map.
Contents
Parameters
- $code
-
(string) (Required) the currency 3-letter code
Return
(string)
Source
File: src/Tickets/Commerce/Utils/Currency.php
public static function get_currency_symbol( $code ) {
$map = static::get_default_currency_map();
$symbol = '';
if ( isset( $map[ $code ] ) ) {
$symbol = $map[ $code ]['symbol'];
}
/**
* Filter the specific currency symbol before returning. $code is the 3-letter currency code.
*
* @since 5.2.3
*
* @param string $symbol The currency symbol.
*
* @return string
*/
$symbol = apply_filters( "tec_tickets_commerce_currency_{$code}_symbol", $symbol );
/**
* Filter all currency symbols before returning.
*
* @since 5.2.3
*
* @param string $symbol The currency symbol.
*
* @return string
*/
return apply_filters( 'tec_tickets_commerce_currency_symbol', $symbol );
}