Tribe__Tickets__Commerce__Currency::get_currency_decimal_point( string|null $provider = null )
Get the Currency Decimal Point for a Provider.
Contents
Parameters
- $provider
-
(string|null) (Optional) The ticket provider class name.
Default value: null
Return
(string) The decimal separator.
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' );
}
Changelog
| Version | Description |
|---|---|
| 4.11.0 | Introduced. |