Hide parts from vendor dashboard

MultivendorX Pro

Resolved
Viewing 2 reply threads
  • Author
    Posts
    • #146340
      Klaus Thomas Russ
      Participant

      Dear all,

      I want to hide the

      1. general statistics
      2. visitor/country map
      3. product statistics

      from vendor dashboard.

      Which code do I have to add to the functions.php?

      Best regards,
      Klaus

    • #146388
      promita
      Keymaster

      Hi Klaus Thomas Russ, In order to hide this features from vendor dashboard, you can add this code in functions.php of your child theme :

      
      add_filter( 'mvx_before_dashboard_widget', 'new_before_mvx_dashboard_widget', 10, 1 );
      function new_before_mvx_dashboard_widget( $vendor_dashboard_widget ) {
      	unset($vendor_dashboard_widget['side']['mvx_vendor_product_stats']);  //remove Product Stats widget
      	unset($vendor_dashboard_widget['full']['mvx_vendor_stats_reports']);  //remove Stats report widget
              unset($vendor_dashboard_widget['normal']['mvx_vendor_visitors_map']); //remove visitors map
      	return $vendor_dashboard_widget;
      }
      
      Copy

      Let us know if you have any further query.

    • #146531

      Thanks for the update.
      We would love it if you share your experience by giving us 5/5 review here : https://wordpress.org/support/plugin/dc-woocommerce-multi-vendor/reviews/#new-post
      Seeing glowing reviews from existing customers makes others more comfortable that they’ll get the support they need whenever an issue with our services arise.

Viewing 2 reply threads

The topic ‘Hide parts from vendor dashboard’ is closed to new replies.