Control Access to WooCommerce Admin Menus
The Pro version of PublishPress Capabilities allows you to block access to admin menu links in WooCommerce. This is useful because WooCommerce has very limited options for controlling who can access the admin screens.
WooCommerce is the most popular WordPress eCommerce plugin. You can create beautiful store with themes customized to your brand and industry and you'll find 1,000's of tools and popular integrations.
When you first install WooCommerce, you'll see four top-level menu links, plus sub-menus. All of these links are available to users in the Administrator and Shop Manager roles.
It is possible to control who can access these links by using the PublishPress Capabilities Pro plugin.
- After installing PublishPress Capabilities Pro, go to “Capabilities”, then “Admin Menus” in your WordPress admin area:
- In the top-left corner of this screen, choose the role that you want to edit. In the image below, I'm going to restrict access for the “Shop manager” role.
- Scroll down and you can enter a red X for any menu link that you don't want users in the Shop Manager role to access.
- Click “Save Changes”.
Now when a Shop Manager logs in to you site, they will be able to see other WooCommerce admin menus, but they will NOT be able to see any of the “Analytics” links.
This approach works for the core WooCommerce plugin and can also be used for WooCommerce add-on plugins such as WooCommerce Subscriptions, WooCommerce Shipping, and WooCommerce Bookings.