• Resolved Arnoud Klaren

    (@aklaren)


    When an Admin user visits the “Edit profile” page, a dropdown with other users is show, allowing the Admin user to edit the other users’ profiles. However, users that have the “Admin” role are no longer included in that dropdown. Is this on purpose, a bug or a setting?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support alexandrubodea

    (@alexandrubodea)

    Hi @aklaren,

    This is intended, by default the users that have the Administrator user role will not appear there. But if you wish to see Admins in the “User to Edit” selection, then you will need to use the following code:

    add_filter( 'wppb_edit_other_users_dropdown_query_args', 'wppbc_allow_administrators_to_be_edited_in_frontend' );
            function wppbc_allow_administrators_to_be_edited_in_frontend( $args ){
    
                unset( $args['role__not_in'] );
    
                return $args;
                
            }

    Note: You can use the code by adding it to your theme’s ‘functions.php’ file or by creating a new plugin as described here.

    Best regards,

    Thread Starter Arnoud Klaren

    (@aklaren)

    Thanks for the reply. I don’t understand why this was changed (in previous releases users with admin roles were included). Since this is only shown to admins, I don’t see the need to hide (other) admins by default.

    Plugin Support alexandrubodea

    (@alexandrubodea)

    The main reason is that now you can give other users roles only one extra capability so that they could also view the “User to Edit” select. Until now, for this to happen, you also had to give them the capability that would make then similar to an Administrator (but now, this is no longer necessary).

    Thread Starter Arnoud Klaren

    (@aklaren)

    Ok, that makes sense. Thanks for the explanation.

    Thread Starter Arnoud Klaren

    (@aklaren)

    On second thoughts, the above mentioned work-around causes a big problem for us. We have a.o. roles for “trial members” and “members” and some “members” are also “admin”. We want to use the “Edit profile” page to easily upgrade “trial members” to “members” (or a similar role). But since the “admin” rol cannot be included in the “Select (User Role)” field, (accidentally) updating the profile of a “member” who is also an “admin” (even without changing anything) will cause the “admin” role to be removed, leaving the “member” rol only. Is there a way to include the “admin” role in the “Select (User Role)” field too? Or any other suggestions?

    Plugin Support alexandrubodea

    (@alexandrubodea)

    We are not allowed to speak about the paid versions here. In case you would like to have that conversation please open a support ticket using our site?https://www.cozmoslabs.com/support/.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Admin users not visible in Edit Profile dropdown’ is closed to new replies.