Tribe__Tickets__Commerce__Currency::get_currency_thousands_sep( string|null $provider = null )
Get the Currency Thousands Separator for a Provider.
Contents
Parameters
- $provider
-
(string|null) (Optional) The ticket provider class name.
Default value: null
Return
(string) The thousands separator.
Source
File: src/Tribe/Commerce/Currency.php
public function get_currency_thousands_sep( $provider = null ) {
if ( ! class_exists( $provider ) ) {
return $this->get_currency_locale( 'thousands_sep' );
}
if ( 'Tribe__Tickets_Plus__Commerce__WooCommerce__Main' === $provider ) {
return get_option( 'woocommerce_price_thousand_sep' );
}
if ( 'Tribe__Tickets_Plus__Commerce__EDD__Main' === $provider && function_exists( 'edd_get_option' ) ) {
return edd_get_option( 'thousands_separator', '.' );
}
return $this->get_currency_locale( 'thousands_sep' );
}
Changelog
| Version | Description |
|---|---|
| 4.11.0 | Introduced. |