I’ve ACF (Superior Customized Fields) put in on my WordPress web site and am attempting so as to add a comma each third place (1,000) as an alternative of (1000). I’m using code I’ve discovered on different boards, however causes a essential error after I use it. I believe that is my very own error (novice) and hope somebody can assist me discover out what I am doing improper.
add_filter('acf/format_value/identify=number_of_supporters', 'fix_number', 20, 3);
perform fix_number($worth, $post_id, $discipline) {
$worth = number_format($worth);
return $worth;
}
The web site URL is https://coregiving.org and it leverages the Oxygen builder (if it is related).
Thanks!