Thank you for your answer, but it is not working.
I want to put a link to the shortcode “[wpdm_frontend]” and I put the code below to the function.php of the theme.
The result you can show on the image attached.
So the wpdm_frontend is opening in a frame of the dashboard, but I can not run the correct link if I click to the second time to “Add new”.
Can you help me to connect the “add new” button to the first button?
Best regards
Fatmir
// Use this filter to add menu items with author dashboard or remove any menu item from author dashboard
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’]);
unset($menu_items[‘subscription-plan’]);
unset($menu_items[‘subscription-download-area’]);
unset($menu_items[‘subscription-download-area’]);
//Adding new menu item using callback function
//$menu_items[‘new-menu-id’] = array(‘name’► __(‘Menu Title’,’text-domain’), ‘callback’ ► ‘CallbackFunction’);
//Adding new menu item using short-code
$menu_items[‘new-menu-id’] = array(‘name’► __(‘Add NEW’,’text-domain’), ‘shortcode’ ► ‘[wpdm_frontend]‘);
return $menu_items;
}