Support

Account

Home Forums General Issues Number Format Fix Need Update for Php 8

Unread

Number Format Fix Need Update for Php 8

  • add_filter('acf/format_value/name=listing_price', 'fix_number', 10, 3);
    function fix_number($value, $post_id, $field) {
    $value = number_format($value);
    return $value;
    }

    This is throwing an error in PHP greater than 7.4. Any way to make this work in 8.2 for example?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.