Hide Sales Totals From the WooCommerce Shop Manager Role

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:

  1. Hide the WooCommerce Reports
  2. Hide the WoCommerce Analytics
  3. Hide the WooCommerce Status Widget from Dashboard

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses cookies to offer you a better browsing experience. By browsing this website, you agree to our use of cookies.