Add Course forum link inside curriculum

1. Go to WP Admin -> Plugins -> Editor->WPLMS Customizer -> customizer_class.php
2. Add the following line of code in in __construct function :

PHP Code:
add_action ('wplms_course_start_after_timeline',array($this,'wplms_course_start_after_timeline'),10,1);

 

3. Add the following function in the class:

PHP Code:

 

function wplms_course_start_after_timeline($course_id){
           $forum_id = get_post_meta($course_id,'vibe_forum',true);
           if(isset($forum_id) && is_numeric($forum_id)){
               echo '<a href="'.get_permalink($forum_id).'" class="button full">COURSE FORUMS</a>';
           }
       }

4. Save.