Hello guys how are you? Welcome back to my blog. Today in this post I will tell you, Dokan Multivendor Dashboard Adding Menu Submenu Items with Drop shipping.
Guys if you are new in WordPress or in WooCommerce then please check the below links for some good tutorials:
1. Guys here the working code snippet and you can add this inside your theme’s functions.php file:
function get_dashboard_nav( $menus ) { $custom_menus = [ 'custom_menu_with_submenu' => [ 'title' => __( 'Jassa ', 'dokan-lite' ), 'icon' => '<i class="fas fa-cog"></i>', 'url' => dokan_get_navigation_url( '#' ), 'pos' => 60, 'submenu' => [ 'submenu1' => [ 'title' => __( 'Jassa Rich', 'dokan-lite' ), 'icon' => '<i class="fas fa-university"></i>', 'url' => dokan_get_navigation_url( '#' ), 'pos' => 10, 'permission' => 'dokan_view_store_settings_menu', ], ], ], ]; return array_merge( $menus, $custom_menus ); } add_filter( 'dokan_get_dashboard_nav', 'get_dashboard_nav' );
I will appreciate that if you will tell your views for this post. Nothing matters if your views will be good or bad because with your views, I will make my next posts more good and helpful.
Jassa
Thanks
hello how can i add another submenu?
HI, you can do using above code with same submenu way.