Reviews on courses are not showing. I've read on that post that I have to copy and paste this but i'm not sure where I have to paste it because all my stuff is in french. The image in the post is where I think it need to be placed but I'm not sure.
Sorry for my bad english :)
https://ibb.co/Nt5Ghsf
https://wplms.io/support/forums/topic/learning-management-system-reviews-issue/
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'));
}
});