This removes fields from profile but not in settings. You need to add code for it. please specify which fields you want to hide
To hide “send email notice & export data setting” you need to install and activate wplms-customizer plugin from here https://wplms.io/support/knowledge-base/wplms-customizer-plugin/
Then goto plugin editor>>wplms customizer.php and add this code
function hide_student_settings(){
if( !current_user_can('edit_posts')){
?>
<style>
#vibebp_member .profile_grid .profile_settings .portal:last-child {
display:none !important;
}
#vibebp_member .profile_grid .profile_settings .portal:nth-child(3) {
display:none !important;
}
</style>
<?php
}
}
add_action('wp_head','hide_student_settings');