WCMp bundle is available at a slashed price

Grab It Now

Custom submenus to Vendor pages

Custom submenus to Vendor pages2019-04-13T10:37:44-05:00

Home Support Forum WCMp Advanced Frontend Manager Custom submenus to Vendor pages

WCMp Advanced Frontend Manager

Custom submenus to Vendor pages Open

  • Author
    Posts
  • jahau
    Participant
    Post count: 52

    Hi, I’ve added custom menu already but how do I add a submenu?

    What should be added to submenu array? Thanks.

    	$nav['custom_wcmp_menu_all_items'] = array(
    	  	'label' => __('Questions & Answers', 'custom-marketplace'), // menu label
    		'url' => wcmp_get_vendor_dashboard_endpoint_url('items-qna'), // menu url
    		'capability' => true, // capability if any
    		'position' => 5, // position of the menu
    		'submenu' => array(
    		 ), // submenu if any
    		'link_target' => '_self',
    		'nav_icon' => 'dashicons dashicons-format-chat', // menu icon
    	);
  • NerdySupportExpert Moumita
    Keymaster
    Post count: 3031

    Hi @jahau, you need to create the submenu using this :

    'submenu' => array(
    		 ), 

    For better understanding please check how we are creating the submenu: https://github.com/dualcube/dc-woocommerce-multi-vendor/blob/master/classes/class-wcmp-vendor-hooks.php using this filter wcmp_vendor_dashboard_nav

  • jahau
    Participant
    Post count: 52

    Hi, thanks. This was clear. I need also to add sub menus to existing Product Manager. How can this be achieved?

  • jahau
    Participant
    Post count: 52
    This reply has been marked as private.
  • NerdySupportExpert Moumita
    Keymaster
    Post count: 3031
    This reply has been marked as private.
  • jahau
    Participant
    Post count: 52
    This reply has been marked as private.
  • NerdySupportExpert Moumita
    Keymaster
    Post count: 3031
    This reply has been marked as private.
  • jahau
    Participant
    Post count: 52
    This reply has been marked as private.

Please LOGIN to reply to this topic