I am using the function below to display values on the front-end.
Everything is fine, but I would like to change commas to spaces – how do I do that?
add_filter('acf/format_value/name=cena', 'fix_number', 10, 3);
function fix_number($value, $post_id, $field) {
$value = number_format($value);
return $value;
}
I will be grateful for your help.