hi
for student
refer:
https://ibb.co/2K37Gqp
use this code:
add_filter('wplms_get_student_mmy_course_tabs',function($tabs,$body,$req){
$user = apply_filters('vibebp_api_get_user_from_token','',$body['token']);
if(!user_can($user->id,'edit_posts')){
unset($tabs['announcementsnews']);
unset($tabs['qna']);
unset($tabs['notes']);
}
return $tabs;
},10,3);