Reviews problem

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #252642
    raffasimonne
    Participant
    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'));

    }

    });

    #252972
    Diana
    Participant
    Paste the code in wp-admin > Plugins > Editor > Select WPLMS Customizer Plugin > wplms-customizer.php Before posting that, edit your course in the backend like from wp-admin > LMS > All courses > edit course > at the bottom of the page you will find a checkbox of allow comments, allow that and save the page Then check in the frontend are you able to view reviews section?
    #253891
    raffasimonne
    Participant
    Can you give me some print screen? I dont find it on my panel in french! thanks!
    #253999
    Diana
    Participant
    This reply has been marked as private.
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Reviews problem’ is closed to new replies.