Support

Account

Home Forums Backend Issues (wp-admin) All role in the User list field Reply To: All role in the User list field

  • I can see yy with this but unfortunately i only see customer role in the list

    add_filter(‘acf/prepare_field/key=field_5a47128676459’, ‘my_set_role_filter’);
    function my_set_role_filter($field) {
    print_r (“yy”);
    if (current_user_can(‘shop_manager’)) {
    $field[‘role’] = ”;
    }
    return $field;
    }