Every time I update this course-page Reviews disappear

Home Forums Legacy Support Support queries Other issues Every time I update this course-page Reviews disappear

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #225449
    carlosmer
    Spectator
    Hello, every time I update my course page, reviews disappear. This is not a major problem for me anymore since I found out how to make them appear again: LMS > All Courses > Quick Edit > Allow comments But it's still a pain in the ss having to do this every time I do any update, even if I don't change anything and just click update. I try to explain my problem in the next video
    #225450
    carlosmer
    Spectator
    This reply has been marked as private.
    #225452
    carlosmer
    Spectator
    I'd like to know why is this happening and if there is anything to do to fix this.
    #225567
    Mk
    Moderator
    I checked it on my local but It was working totally fine at my end. Refer http://somup.com/cqQXIiezRW.  
    Please share login credentials in private, so that I could check your issue at your end.
    #225959
    carlosmer
    Spectator
    This reply has been marked as private.
    #226111
    Mk
    Moderator
    ok add this code in your customizer.php Go to wp-admin-> plugins -> editor->select wplms-customizer -> wplms-customizer.php and this code at below.   add_action('wplms_after_course_description',function(){   global $post;   $post->comment_status="open"; }); add_action('bp_before_course_body',function(){   global $post;   $post->comment_status="open"; });    add_action('wplms_before_start_course',function(){   $course_id = 0;   if(isset($_POST) && isset($_POST['course_id'])){     $course_id = $_POST['course_id'];   }   if(empty($course_id ) && !empty($_COOKIE['course_id'])){     $course_id = $_COOKIE['course_id'];   }   if(!empty($course_id)){     wp_update_post(array('ID'=>$course_id,'comment_status' => 'open'));    } });      
    #226550
    carlosmer
    Spectator
    Fixed, thank you very much!
    #226755
    Mk
    Moderator
    glad to hear, thank you for confirmation. I am closing this topic.
Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Every time I update this course-page Reviews disappear’ is closed to new replies.