Currency::get_currency_separator_thousands( string $code )
Return the currency thousands separator character 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_separator_thousands( $code ) {
$map = static::get_default_currency_map();
$separator = '';
if ( isset( $map[ $code ] ) ) {
$separator = $map[ $code ]['thousands_sep'];
}
/**
* Filter the specific currency thousands separator before returning. $code is the 3-letter currency code.
*
* @since 5.2.3
*
* @param string $separator The currency thousands separator character.
*
* @return string
*/
$separator = apply_filters( "tec_tickets_commerce_currency_{$code}_separator_thousands", $separator );
/**
* Filter all currency thousands separators before returning.
*
* @since 5.2.3
*
* @param string $separator The currency thousands separator character.
*
* @return string
*/
return apply_filters( 'tec_tickets_commerce_currency_separator_thousands', $separator );
}