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 don’t have all of the code for this. Basically you need to create an acf/prepare_field filter https://www.advancedcustomfields.com/resources/acf-prepare_field/. In this filter you need to get the current user’s role and then update the field setting for role accordingly.

    
    // to set roles to all
    $field['role'] = '';