Hello,
As @Daina says you to that if you want to saw this menu for students user role or admin user role or any other Then you have to use code given below that work for The user has the "author" role means admin:
"Go to wp-admin> Plugins> editor> select wplms customizer plugin> wplms-customizer.php and add the below code there"
add_filter ('wplms_logged_in_top_menu', 'loggedin_login_panel');
function loggedin_login_panel ($ loggedin_menu) {
$user = wp_get_current_user();
if ( in_array( 'author', (array) $user->roles ) ) {
$ loggedin_menu ['custom'] = array (
'icon' => 'icon-book-alt2',
'label' => __ ('COURSE KIT'),
'link' => 'https: //www.huelladocente .com / student-kit / menu-group-selection / menu-course-gr-001 / '
);
return $ loggedin_menu;
}
}
Thanks,