Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Remove wp-admin view for roles other than \'Admin\'
Tagged: WCFM ultimate, wp-admin view
- This topic has 5 replies, 2 voices, and was last updated 6 years, 9 months ago by WCFM Forum.
- AuthorPosts
- February 13, 2018 at 11:58 pm #19058kasaga311Participant
Hi,
I would like to remove the wp-admin view access to all user roles other than the admin (superuser).
We don’t want the Shop Manager and Vendor to have this access on the Product, Customers and other pages.
Please let me know how to achieve this?
Thanks,
-KasagaAttachments:
You must be logged in to view attached files. - February 14, 2018 at 12:57 am #19063WCFM ForumMember
Hi,
Kindly go through WCFM Capability, you can do all this.
Thank You
- February 14, 2018 at 1:23 am #19064kasaga311Participant
Thanks for the quick response.
We also use the WCFM Group and Staffs plugin and have removed the ‘Backend Access’ for the Shop Manager and Vendor.
However, we still see the wp-admin icon. Can you tell us which setting impacts that?
Thanks,
-Kasaga - February 14, 2018 at 7:08 am #19076WCFM ForumMember
Hi,h
Ok, I understand. That icon for Shop Managers.i
But they are not able to access wp-admin backend, right?We are just checking, that icon has to be disable with this settings.
If not so then it’s a bug, we will fix this on next update.Or if you want to hide that right now then please add this code snippet to your site –
function wcfmcap_hide_wp_admin_view( $allow ) { return false; } add_filter( 'wcfm_allow_wp_admin_view', 'wcfmcap_hide_wp_admin_view', 750 );
Thank You
- February 14, 2018 at 9:03 am #19084kasaga311Participant
Thanks again for your support.
The snippet worked great and it removed the wp-admin access completely. We’ll live with it till your fix.
Regards,
-Kasaga - February 14, 2018 at 2:31 pm #19100WCFM ForumMember
Great.
Welcome 🙂
- AuthorPosts
- The topic ‘Remove wp-admin view for roles other than \'Admin\'’ is closed to new replies.