Description
Use this filter to add action for user dashboard without adding menu in left sidebar. For example, you may add a menu in content section manually and want to skip from left sidebar, then you can use this filter.
Parameters
One parameter is passed to this hook.
Usage
To add new tabs Under Package Settings section.
<?php add_filter('wpdm_dashboard_menu_actions','my_custom_dashboard_actions',10,1); ?>
Examples
<?php
add_filter('wpdm_dashboard_menu_actions','my_custom_dashboard_actions',10,1);
// $menu_items is an array containing current menu items
function my_custom_dashboard_menus($dashboard_actions){
//Adding new action using callback function
$dashboard_actions['new-menu-id'] = array('callback' => 'CallbackFunction');
//Adding new action using short-code
$dashboard_actions['new-menu-id'] = array('shortcode' => '[short_code_here]');
return $dashboard_actions;
}
?>