Edit nav dashboard vendor

WCMp Core

Resolved
Viewing 4 reply threads
  • Author
    Posts
    • #146574
      louKyLouk
      Participant

      Hello,

      I would like to remove a submenu in the sidebar nav from the dashboard vendor. Is there a better way to do it ?

      Thanks

    • #146603
      luanne
      Participant

      I would also like to remove a sub menu from the vendor dashboard: Customer Questions, under Store Settings.

    • #146611
      promita
      Keymaster

      Hi luanne, In order to remove customer questions submenu from the vendor dashboard, you can add this code in functions.php of your child theme :

      
      //Delete customer questions submenu from Vendor Dashboard
      add_filter('mvx_vendor_dashboard_nav', 'callback_mvx_vendor_dashboard_nav', 99);
      function callback_mvx_vendor_dashboard_nav($vendor_nav){
      	unset($vendor_nav['store-settings']['submenu']['products-qna']); 
         return $vendor_nav;
      }
      
      Copy

      Let us know if you have any further query.

    • #146624
      louKyLouk
      Participant

      Hi,

      I actually found the way to solve my question, I added this code in functions.php :

      function hide_wcmp_dashboard_submenu( $nav ) {
      if(isset($nav[‘store-settings’])){
      $nav[‘store-settings’][‘submenu’][‘vendor-shipping’] = 0;
      }
      return $nav;
      }
      add_filter(‘wcmp_vendor_dashboard_nav’, ‘hide_wcmp_dashboard_submenu’);

      It works.

    • #146632

      @louKyLouk, if you have WCMp installed, then your code will work.

      For MultiVendorX, you need the code of @promita

Viewing 4 reply threads

The topic ‘Edit nav dashboard vendor’ is closed to new replies.