About notes&discussion

Home Forums Legacy Support Support queries How-to & Troubleshooting About notes&discussion

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #59458
    Eric
    Spectator
    Hi, I set notes&discussion as "per unit". I have two questions. 1.When students ask question, the instructor receive the email to approve. But I disable the accessing WP admin area, so any other way to approve? Or how set no necessary to approve for notes&discussion only.
    1. When instruct give a reply, looks no email to student. how can also send a email to inform students?
    Thanks Eric
    #59660
    H.K. Latiyan
    Participant
    1) For this please use this code in your wplms-customizer.php file present in your wplms customizer plugin:  
    add_action('wplms_course_unit_comment','custom_approve_unit_comments',10,4);
    function custom_approve_unit_comments($unit_id,$user_id,$comment_id,$args){
      if( 'unit' == get_post_type( $unit_id )) {
        $retrieved_comment = get_comment( $comment_id, ARRAY_A );
        //approve comment    
        $commentarr = $retrieved_comment;
        $commentarr['comment_ID'] = $comment_id;
        $commentarr['comment_approved'] = 1;
        wp_update_comment( $commentarr );
      }
    }
    
    2) For this please go to wp-admin->lms->settings->touch points->unit comment added by user, refer: http://prntscr.com/bvp3na and enable the email for students.
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘About notes&discussion’ is closed to new replies.