I need to change number format for my whole site as different country uses different formats like
- United States — $1,234,567.89 USD
- Canada — $1,234,567.89 CAD
- Great Britain — £1.234.567,89 GBP
- European — €1.234.567,89 EUR
By default it uses United State format but i need it to be European.
what i can do is use
number_format($number, 2, ',', '.');
this simple function, which works fine for me, but i have to use it every time i am working with number, And i need this to use for once like in wp-config.php or function.php file and that will change the format for whole site.
Is it possible?