Docs / Filter Reference / wpdm_user_dashboard_menu

wpdm_user_dashboard_menu

Description


Use this filter to add menu items with user dashboard or remove any menu item from user dashboard

Parameters


One parameter is passed to this hook.

Usage


To add new tabs Under Package Settings section.

<?php add_filter('wpdm_user_dashboard_menu','my_custom_dashboard_menus',10,1);  ?>

Examples

<?php
add_filter('wpdm_user_dashboard_menu','my_custom_dashboard_menus',10,1);
// $menu_items is an array containing current menu items
function my_custom_dashboard_menus($menu_items){ 
      // Removing edit profile menu
      unset($menu_items['edit-profile']);
      //Adding new menu item using callback function
      $menu_items['new-menu-id-1'] = array('name'=> __('Menu Title','text-domain'), 'callback' => 'CallbackFunction');
      //Adding new menu item using short-code
      $menu_items['new-menu-id-2'] = array('name'=> __('Menu Title','text-domain'), 'shortcode' => '[short_code_here]');
      return $menu_items;
}
?>
Last updated on January 26, 2026

Need Help?

Get support from our team or community forum.

Visit Support

Customization

Need custom features? We can help.

Request Quote