Description
Returns a formatted price to show in the screen.
To format the price, this function uses the Decimal point separator, the Thousands separator, the currency symbols and the Currency layout. See the Currency section in the Settings admin panel.
Usage
<?php echo tcp_format_the_price( $price, $currency ); ?>
Parameters
- $price
- (Float)(required) The price to format.
- $currency
- (String)(optional) The currency symbol. By default, the price is formatted using the system currency.
Examples
<?php echo tcp_format_the_price( tcp_get_the_price() ); ?>
Change Log
Since: 1.0.7