Use plugin on a custom role but limit on shopmanager

[ad_1]

Hi!

At first, this is a great plugin. I was very impressed by the simplicity and the effectiveness of it not only for switching between user profiles but also for managing roles! I wonder why this is not popular really.

One question: I have a custom role “seller” in my woocommerce store and I want this role to be able to login as a customer to help him buy products.
In seller role capabilities I have enabled only the “edit_users” and the 2 view_admin_as permissions as indicated in other posts in this forum.

So, far so good. The seller can switch to any customer and this is amazing.
BUT, the seller can switch also as an shopmanager and this is not good, as the shopmanager has many permissions that shouldn’t be active on seller.

Is it possible to limit the seller role to specific roles?

I have tried to play with the level_0, level_1 etc but with no luck.
Is there any hook or any way to achieve this?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer