Remove notes and discussions

Home Forums Legacy Support Support queries Update Issues Remove notes and discussions

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #327762
    ART-Providers
    Participant
    We wish to disable the discussion or Ask a question in units How can the Notes /Discussions be turned off ?
    #327900
    Anshuman Sahu
    Keymaster
    Well the way is to disable the comments in unit from unit edit page in backend . OR try adding this code please try adding this given code in your wplms-customizer.php file in wplms customizer plugin :
    add_filter('comments_open',function($open,$id){
        if(get_post_type($id)=='unit'){
            $open = 'closed';
        }
        return $open;
    },999999,2);
    #328357
    ART-Providers
    Participant
    I still see the Ask a question and Discussion section. Is there anything else I should be doing?
    #328468
    Anshuman Sahu
    Keymaster
    Well the way is to disable the comments in unit from unit edit page in backend .
    #328507
    ART-Providers
    Participant
    That would be very difficult for Admin to go through all units to disable the comments on all units created by tutors. Isn't there a setting to disable all in a go?
    #328508
    ART-Providers
    Participant
    I believe I understand. It has to be done for all past units. All new units will have the note disabled Thanks
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Remove notes and discussions’ is closed to new replies.