Categories

Friday, November 22, 2024
#919814419350 therichposts@gmail.com
DokanmultivendorWoocommerceWordpress

Dokan Multivendor Dashboard Adding Menu Submenu Items with Drop shipping

Dokan Multivendor Dashboard Adding Menu Submenu Items with Drop shipping

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.

Dokan Multivendor Dashboard Adding Menu Submenu Items with Drop shipping
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. WooCommerce Hooks
  2. WordPress Tricks
  3. WordPress Hooks
  4. Dokan

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

therichpost
the authortherichpost
Hello to all. Welcome to therichpost.com. Myself Ajay Malhotra and I am freelance full stack developer. I love coding. I know WordPress, Core php, Angularjs, Angular 19, MedusaJs, Next.js, Bootstrap 5, Nodejs, Laravel, Codeigniter, Shopify, Squarespace, jQuery, Google Map Api, Vuejs, Reactjs, Big commerce etc.

2 Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.