Hi, my vendors need to log in through the backend dashboard , however I notices that they have access to sales report from my whole marketplace. This is not acceptable as I don’t want all my vendors to know how much my marketplace is doing in sales… I attach a screenshot of what my vendors see… pleas help, how can I block my vendors from accessing this information?
Hi, that only work for sales report. I also need to hide the “Analytics” tab (see screenshot) and the hubspot one.
I tried following the same logic as for the code snippet you provided. So as the URL is
I tried with
You cann’t remove these by useing same way what we did. This setting are comming from woocommerce and done by react native. This are not proper menu pages. Check this woocommerce support https://wordpress.org/support/topic/new-4-0-dashboard-is-so-bad/. What we have checked from this thread you have to use add_filter( ‘woocommerce_admin_disabled’, ‘__return_true’ ); this code in your plugin. It will not work in your theme. And one more thing is you cannot use this hook within init,wp,admin_init this hooks. So you can’t add checking with current user id. So please ask woocoommer how do you remove this for a perticular user role.