When you install WooCommerce, it automatically adds the Shop Manager role. This role can manage the WooCommerce settings, manage orders, add and edit products, and access the sales reports and Analytics.
This role allows store Admins to assign someone to manage their store without having all of the Administrator capabilities. In some cases, you prefer that this person to not to be able to view the Sales totals, reports and analytics, In this case, you can hide these admin options from the Shop Manager user role.
The below code Snippet can be used in your functions.php file to hide the following sections from the Shop Manager Role:
- Hide the WooCommerce Reports
- Hide the WoCommerce Analytics
- Hide the WooCommerce Status Widget from Dashboard