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

    (@johnbillion)

    WordPress Core Developer

    Yes you can do this by granting the switch_users capability to a user or a role, but in practice this isn’t a good idea because it allows the user to switch to an Administrator.

    You probably need to accompany this with your own application-specific logic that controls whether the user can edit a given user, which in turn controls whether the user can switch to a given user.

    Bit more info here: https://www.ads-software.com/support/topic/woocommerce-roles-2/ but it’s not something that User Switching can or will natively support out of the box.

    If you use a “Shop Manager” role from WooCommerce, you will NOT be able to switch to an admin so there shouldn’t be an issue adding “switch_users” to that role.

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