Coupon and Reviews remove

This topic contains 8 reply and 3 voices, and was last updated by Nayem 9 years, 2 months ago
Viewing 8 Posts - 1 through 8 (of 8 total)
Author Posts
August 25, 2015 at 11:43 pm 69048
Nayem 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
August 26, 2015 at 3:00 pm 69120
towhid towhid

Hello Corrado,

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

Thanks

August 27, 2015 at 6:57 pm 69393
Corrado Corrado

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)

August 27, 2015 at 7:04 pm 69394
Nayem Nayem

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.

August 27, 2015 at 7:19 pm 69402
Corrado Corrado

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

August 27, 2015 at 7:29 pm 69408
Nayem Nayem

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;

}
August 27, 2015 at 9:07 pm 69416
Corrado Corrado

Wonderfull

August 29, 2015 at 9:52 am 69487
Nayem Nayem

I am marking this topic as resolved.

Thanks.

August 29, 2015 at 6:49 pm 69577
Nayem Nayem This reply has been marked as private.
Viewing 8 Posts - 1 through 8 (of 8 total)