ACF: replace comma with another sign
I am using ACF.
I am using this function to display numbers in number fields in this way 1,000.00
// Return ACF Number Fields Formatted with Commas on the Frontend
add_filter('acf/format_value/type=number', 'acf_number_comma_decimal', 20, 3);
// Without Decimal
function acf_number_comma($value, $post_id, $field) {
$value = number_format(floatval($value));
return $value;
}
// With Decimal
function acf_number_comma_decimal($value, $post_id, $field) {
$value = number_format(floatval($value), 2);
return $value;
}
I would like to replace the ” , ” with this ” ‘ ” so the value will be displayed in this way: 1’000.00.
How can i achieve that?
Topic advanced-custom-fields Wordpress
Category Web