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
This reply has been marked as private.
I'd like to know why is this happening and if there is anything to do to fix this.
MkModerator
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.
This reply has been marked as private.
MkModerator
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'));
}
});
Fixed, thank you very much!
MkModerator
glad to hear,
thank you for confirmation. I am closing this topic.