Home Forums Theme Support Dokan Coupon and Reviews remove

This topic is: resolved

This topic contains 8 replies, has 3 voices, and was last updated by  Nayem 3 years, 9 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #69048

    Corrado
    Member
    Post count: 14

    Hallo, in Dokan plugin new version I'm not able to remove Coupons and Reviews voices from dashboard sidebar and Header menu. What are the files to customize?

    Thank you very much

    #69120

    towhid
    Participant
    Post count: 4505

    Hello Corrado,

    To remove any dashboard menu please download this plugin from this link – https://github.com/nayemDevs/dokan-menu-hider.

    Thanks

    #69393

    Corrado
    Member
    Post count: 14

    Hello Towhid, with the Plugin I can remove only one menu voice, I need to delete more than one voice (orders, coupons, reports, review in dashboard panel) (Payment, shipping in Seller setting)

    #69394

    Nayem
    Moderator
    Post count: 6480

    I did not add that feature yet in that plugin. You can use this custom code in your child theme function.php file-

    add_filter( 'dokan_get_dashboard_nav', 'prefix_dokan_add_seller_nav' );
    function prefix_dokan_add_seller_nav( $urls ) {
    	  
    	  unset( $urls['reviews'] );
    	  unset( $urls['coupons'] );
    
        return $urls;
    }

    Thanks.

    #69402

    Corrado
    Member
    Post count: 14

    This is perfect. Is it possibile to made the same in Settings menu to hide payment, shipping… ?

    #69408

    Nayem
    Moderator
    Post count: 6480

    Yes possible. Then you have to add another filter there-

    add_filter( 'dokan_get_dashboard_settings_nav', 'remove_sub_tab' );
    
    function remove_sub_tab($settings_sub){
    
        unset($settings_sub['shipping']);
        unset($settings_sub['payment']);
        return $settings_sub;
    
    }
    #69416

    Corrado
    Member
    Post count: 14

    Wonderfull

    #69487

    Nayem
    Moderator
    Post count: 6480

    I am marking this topic as resolved.

    Thanks.

    #69577

    Nayem
    Moderator
    Post count: 6480
    This reply has been marked as private.
Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Coupon and Reviews remove’ is closed to new replies.