Tribe__Tickets__Commerce__Currency::get_currency_decimal_point( string|null $provider = null )

Get the Currency Decimal Point for a Provider.


Parameters

$provider

(string|null) (Optional) The ticket provider class name.

Default value: null


Top ↑

Return

(string) The decimal separator.


Top ↑

Source

File: src/Tribe/Commerce/Currency.php

	public function get_currency_decimal_point( $provider = null ) {

		if ( ! class_exists( $provider ) ) {
			return $this->get_currency_locale( 'decimal_point' );
		}

		if ( 'Tribe__Tickets_Plus__Commerce__WooCommerce__Main' === $provider ) {
			return get_option( 'woocommerce_price_decimal_sep' );
		}

		if ( 'Tribe__Tickets_Plus__Commerce__EDD__Main' === $provider && function_exists( 'edd_get_option' ) ) {
			return edd_get_option( 'decimal_separator', '.' );
		}

		return $this->get_currency_locale( 'decimal_point' );
	}

Top ↑

Changelog

Changelog
Version Description
4.11.0 Introduced.