Technical Docs

Search Documentation

Function: tribe_format_currency

Receives a float and formats it with a currency symbol

Located at src/functions/template-tags/general.php (Line: 438)

Parameters summary

(string) $cost pricing to format
(null|int) $post_id
(null|string) $currency_symbol
(null|bool) $reverse_position

Return value summary

(string)

Examples

string tribe_format_currency ( string $cost, null|int $post_id = null, null|string $currency_symbol = null, null|bool $reverse_position = null )