Please try adding the given css from wp-admin -> appearance -> customize -> custom css :
#course-list .item-meta {
display: none !important;
}
.instructor_course {
display: none;
}
For single course page :
Add the given code in your wplms-customizer.php in wplms customizer plugin :
add_action('wp_footer','hide_events_members');
function hide_events_members(){
if(!is_user_logged_in() || !current_user_can('edit_posts') ){
echo '<style>li#members {
display: none !important;
}li#events {
display: none !important;
}</style>';
}
}
It will hide members and events from students and non logged in users but show to instructors and admins .
If you want it to show to admins only then refer the below code :
add_action('wp_footer','hide_events_members');
function hide_events_members(){
if(!is_user_logged_in() || !current_user_can('manage_options') ){
echo '<style>li#members {
display: none !important;
}li#events {
display: none !important;
}</style>';
}
}