1. Go to WP Admin -> plugins -> editor - >Wplms customiser -> wplms-customizer.php
add_filter('wplms_curriculum_course_link','enable_course_students_view_units_curriculum'); function enable_course_students_view_units_curriculum($enable){ $user_id = get_current_user_id(); $course_id = get_the_ID(); if(wplms_user_course_active_check($user_id,$course_id)) return 1; return $enable; } add_filter('wplms_direct_access_tounit','enable_access_tostudents',10,2); function enable_access_tostudents($flag,$post){ $user_id = get_current_user_id(); $check = get_user_meta($user_id,$post->ID,true); if(!empty($check)){ return 0; } return $flag; }