Viewing 4 replies - 1 through 4 (of 4 total)
  • The switch to link in the admin bar only shows for users that have the edit_users capability. In a single site installation this is administrators, whereas in a multisite install it is super admins.

    Therefore a site administrator of a site within the network that is not a super admin will not see this link.

    It is not possible to give editors the rights to switch. The reason for this is that they could then switch to an admin user to “bump” their own capabilities.

    Thread Starter befla.net

    (@beflanet)

    Well, but how can i make it visible for administrators in a multisite?

    You can use the abus_switch_to_capability filter. An example is below:

    <?php
    add_filter(
    	'abus_switch_to_capability',
    	function() {
    		return 'switch_themes';
    	}
    );
    ?>

    Adding this to your themes functions.php file or a plugin should work although I have not tested it.

    Thread Starter befla.net

    (@beflanet)

    perfect. Thank you very, very much. It works.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘2nd user role’ is closed to new replies.