Paste this code in wp-admin > Plugins > Editor > Select WPLMS Customizer Plugin > wplms-customizer.php
add_action('wplms_logged_in_top_menu','loggedin_login_panel');
function loggedin_login_panel($loggedin_menu){
global $current_user;
$loggedin_menu['custom']=array(
'icon' => 'icon-exclamation', // Grab icon code from here : yoursite.com/wp-content/themes/wplms/css/icons-reference.html
'label' => __('Instructing Course','vibe'),
'link' => 'http://yoursite.com/members/'.$current_user->user_login.'/course/'
);
return $loggedin_menu;
}
Change yoursite.com with the site URL and you need not to add anything as a menu in the LMS > Settings > loggedIn-Menu. This code will automatically set the menu in the loggedin menu
To add this in main menu:- Go to wp-admin > Appearance > Menus > Top Right corner > Screen Options > check the checkbox of BuddyPress, you will get this add the course in the main menu
refer:
http://prntscr.com/lk3pez
http://prntscr.com/lk3q3w