Support

Account

Home Forums Bug Reports User-Select-Field with many users Reply To: User-Select-Field with many users

  • Just added a Filter for that custom field
    `
    add_filter(‘acf/fields/user/query/name=customfieldname’, ‘acf_refernt_field_filter’, 10, 3);
    function acf_refernt_field_filter( $args, $field, $post )
    {
    // modify get users args of that field
    $args[‘role’] = ‘my-custom-user-role’;

    return $args;
    }
    `