• Resolved ryanpst41

    (@ryanpst41)


    Hi

    Is it possible for me to have user switching to users that I allow – IE a customer can switch to a ‘sub account or another user in their organisation’ but not into another customer – or admin!

    Cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Hey,

    By default a user needs to have the ability to edit a user in order to be able to switch to that user.

    If you want to change this behaviour you can override User Switching’s behaviour by hooking into to the user_has_cap and map_meta_cap filters. You can see an example of this in action in the User Switching for Regular Admins plugin.

    John

    Thread Starter ryanpst41

    (@ryanpst41)

    Thanks John – while I understand the code when reading it – trying to get any deeper is a little bit over my head… I get the theory but have no idea where exactly to change it, or paste it.

    Thanks anyway, I’ll have to keep plugging away at it

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Switch to users I define?’ is closed to new replies.