Please add the given code in your wplms-customizer.php file in wplms customizer plugin :
add_filter('bp_course_get_full_course_curriculum','wplms_restrict_free_user_access',9,1); function wplms_restrict_free_user_access($args){ if(!is_user_logged_in()){ foreach($args as $k => $arg){ $args[$k]['link'] = ''; } } return $args; }