Hi,
I'm trying to hide specific menu options from users who are not logged in.
I can see that when you create a Customer Group in B2B King that it creates a new role within Wordpress. I have it setup so that only users who are part of a B2B King Customer Group / Wordpress Role can see specific menu options using a plugin called User Menus.
It all works perfectly. Where it falls apart is when a user signs up, and the admin approves a user for a B2B King Customer Group, for example "Wholesaler" the user's Wordpress Role is not assigned properly and defaults to 'subscriber'. This results in the hidden menu items not being correctly displayed.
Is there a way to automatically sync the Wordpress Role with the selected B2B King Customer Group?