Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

Woocommerce Analytics showing to vendors

WCMp Core

Resolved
Viewing 4 reply threads
  • Author
    Posts
    • #113745
      tim-1673
      Participant

      Hi team,

      How can we hide the Woocommerce Analytics (on the back end dashboard), so that Vendors can’t see all the analytics data for the whole store. Note, I need them to still see the products tab and translations tab in back end dashboard, as we have custom fields that don’t show in the front-end dashboard manager.

      Thanks,
      Tim

    • #114012

      Hi @Tim, nice to hear from you.

      May I know which fields do you want to remove, some scrrenshot will be very much apprititaed.

    • #114643
      tim-1673
      Participant

      Hi

      Please see attached screenshot.

      Thanks

    • #114678

      Hi tim, in our next update we will remove this section.

      For now, add this code in the function.php of your current active theme:

      //Removing analytics tab from admin menu for some specific user role
      add_action( 'admin_init', 'remove_some_menu_items' );
      function remove_some_menu_items() {
      
      	global $user_ID;
      
      	if ( current_user_can('dc_vendor') ) {
      		remove_menu_page('wc-admin&path=/analytics/overview');
      	}
      	
      }
      Copy
    • #118733

      We have not received any update from you for a long. Hope this ticket is already been resolved.

      We are now closing this ticket. Kindly create a new one if you need any further help.

Viewing 4 reply threads

The topic ‘Woocommerce Analytics showing to vendors’ is closed to new replies.