Currency::get_currency_separator_decimal( string $code )

Return the currency decimal separator character to use as defined in the currency map.


Parameters

$code

(string) (Required) the currency 3-letter code


Top ↑

Return

(string)


Top ↑

Source

File: src/Tickets/Commerce/Utils/Currency.php

	public static function get_currency_separator_decimal( $code ) {
		$map       = static::get_default_currency_map();
		$separator = '';

		if ( isset( $map[ $code ] ) ) {
			$separator = $map[ $code ]['decimal_point'];
		}

		/**
		 * Filter the specific currency decimal separator before returning. $code is the 3-letter currency code.
		 *
		 * @since 5.2.3
		 *
		 * @param string $separator The currency decimal separator character.
		 *
		 * @return string
		 */
		$separator = apply_filters( "tec_tickets_commerce_currency_{$code}_separator_decimal", $separator );

		/**
		 * Filter all currency decimal separators before returning.
		 *
		 * @since 5.2.3
		 *
		 * @param string $separator The currency decimal separator character.
		 *
		 * @return string
		 */
		return apply_filters( 'tec_tickets_commerce_currency_separator_decimal', $separator );
	}