number_format_i18n
Filters the number formatted based on the locale.
Type: filter
Since: 2.6.0
Source: includes/util/class-helpers.php line 123
Parameters
| Type | Name | Description |
|---|---|---|
string | $formatted | Converted number in string format. |
float | $number | The number to convert based on locale. |
int | $decimals | Precision of the number of decimal places. |
Usage
add_filter( 'number_format_i18n', function($formatted, $number, $decimals) {
// ...
return $formatted;
} );