Remove tab dashboard

This topic contains 3 reply and 3 voices, and was last updated by towhid 9 years, 3 months ago
Viewing 3 Posts - 1 through 3 (of 3 total)
Author Posts
December 23, 2014 at 5:44 pm 32881
towhid Hello, i use this code to remove some tab form dashboard
function dokan_remove_coupon_menu( $menus ) {
    unset($menus['coupon']);
	unset($menus['reviews']);
	unset($menus['withdraw']);
	unset($menus['orders']);
	unset($menus['reports']);
     
    return $menus;
}
 
add_filter( 'dokan_get_dashboard_nav', 'dokan_remove_coupon_menu' );
Function with all tab but not with orders and reports. I need to show only products tab in dashboard. Why not function? How can i do? Thanks
December 23, 2014 at 6:03 pm 32884
towhid towhid

Hello Federica,
Can you try with this code and let me know the result.

function dokan_remove_coupon_menu( $menus ) {
    unset($menus['coupon']);
    unset($menus['reviews']);
    unset($menus['withdraw']);
    unset($menus['order']);
    unset($menus['report']);
     
    return $menus;
}

 
add_filter( 'dokan_get_dashboard_nav', 'dokan_remove_coupon_menu' );

Thank You 🙂

December 30, 2014 at 3:32 am 33112
Ji Yu Ji Yu

where can I find this PHP file? thanks!

December 30, 2014 at 10:52 am 33128
towhid towhid

Hello Ji Yu,

I have just edited a little bit of your code. I have tested the code myself and worked for me. So you can use the code I have provided. Better you can use a child theme and put this code block in your functions.php file and let me know the result.

Thank You 🙂

Viewing 3 Posts - 1 through 3 (of 3 total)