How to remove Coupon menu items from dashboard nav?

This topic contains 5 reply and 5 voices, and was last updated by Nayem 9 years, 6 months ago
Viewing 5 Posts - 1 through 5 (of 5 total)
Author Posts
May 8, 2014 at 8:58 pm 20159
Nayem I don't want sellers to be able to add coupons. How can the coupon menu item be removed from the dahsboard nav -- function dokan_get_dashboard_nav()? Maybe we can unset the item from the array?
May 9, 2014 at 4:24 pm 20201
Tareq Hasan Tareq Hasan

Yes, just unset it.

[php]
function dokan_remove_coupon_menu( $menus ) {
unset($menus[‘coupon’]);

return $menus;
}

add_filter( ‘dokan_get_dashboard_nav’, ‘dokan_remove_coupon_menu’ );
[/php]

May 10, 2014 at 6:17 pm 20248
Simon Simon

Thank you Tareq!

April 28, 2015 at 3:52 am 42490
hector hector

Hello

The file: dashboard-nav.php

find the code:

how can i write the correct code to don´t show “Coupons” Label in Menu. ??

Thanks.

May 7, 2015 at 4:58 pm 43342
Hjalte Hjalte

Can someone tell me where to put the code mentioned by Tareq above?

I really need to remove “Coupons” and “Reviews” from the Dashboard.

Thanks in advance !

May 11, 2015 at 1:31 pm 43568
Nayem Nayem

Hello Hjalte,

I am really sorry for being late. You have posted in a resolved topic. You can put those code in your child theme’s function.php file.

The code should be like-

function dokan_remove_coupon_menu( $menus ) {
unset($menus['coupon']);

return $menus;
}

add_filter( 'dokan_get_dashboard_nav', 'dokan_remove_coupon_menu' );
Viewing 5 Posts - 1 through 5 (of 5 total)