• great plugin! thank you so much. But seems it applies number_format to text fields of type “number” which is often not useful. Like when you have a custom field for “years” like 2023, 2022 and so on…?then it gets numberformatted to 2,022 which looks odd. Is there a functions.php filter to change this?

Viewing 1 replies (of 1 total)
  • Thread Starter nicmare

    (@nicmare)

    found a solution. use this:

    // acf quick edit
    function format_acf_column($column_html, $object_id, $acf_field){
    if($acf_field["name"] != "year" AND empty($acf_field["value"])) return $column_html;
    return filter_var($column_html, FILTER_VALIDATE_FLOAT, FILTER_FLAG_ALLOW_THOUSAND);
    }
    add_filter("acf_qef_column_html_number",'format_acf_column',10,3);

Viewing 1 replies (of 1 total)
  • The topic ‘unwanted number format in post table’ is closed to new replies.