eo_format_price
since 1.0
Pro
eo_format_price( $price, $show_currency_symbol = true )
Format a price (float). Optionally appends/prepends currency symbol.
Formats a float value to two decimal places. If $currency is true it then appends
(or prepends depending on currency_position option) the currency symbol as
selected by currency.
Applies filter eventorganiser_format_price
.
Parameters
float|\EO_Money
|
$price |
The amount to be formatted
|
bool
|
$show_currency_symbol = true |
True to add currency symbol. False otherwise.
|
Return value
string
|
The formatted price
|
Hooks
Changelog