Support

Account

Home Forums Backend Issues (wp-admin) get_field_object() doesn’t work inside columns when custom filter applied Reply To: get_field_object() doesn’t work inside columns when custom filter applied

  • before filter

     if ($colname === 'calendar_specialist') {
          var_dump(get_field_object("field_653638ad2ee77",$post_id)["choices"]);
    }

    after filter
    I get NULL

    Columns: email, phone, …
    The code works fine if you get the value via

      if ($colname === 'calendar_user_email') {
                        echo get_post_meta($post_id, "group_consultations_email", true);
                    }

    Are there any options to check differently why this works?