Allowing Students to view course curriculum after they finish the course

Current status not working since 2.0  .
Working for wplms version lesser than  2.0

Using this tip you can allow a student to view the course curriculum and access the course resources even after they’ve passed/finished a course.

This will make Course -> Curriculum -> Units/Quizzes accessible , just like for Instructors and Administrators.

We’ve given a filter for this : wplms_curriculum_course_link

Here’s how you can do this :

1. Install the WPLMS Customizer Plugin
2. Go to WP ADmin -> Plugins -> Editor -> WPLMS Customizer -> customizer_class.php
3. Locate the function _construct and add the following line :

PHP Code:

add_filter('wplms_curriculum_course_link',array($this,'custom_wplms_curriculum_course_link'));
add_filter('wplms_before_unit',array($this,'custom_wplms_curriculum_course_link'));

 

 

4. Add the following function in the class :

PHP Code:

function custom_wplms_curriculum_course_link($flag){
$user_id=get_current_user_id();
$course_id=get_the_ID();
   if(wplms_user_course_check($user_id,$course_id)){
     return true;
    }
return false;
}