Question Privacy

Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #55471
    mesrick
    Spectator
    Was given this code snippet to disable question privacy for instructors, yet maintain all other forms of privacy between instructors. Was wondering if it needs tweaking because I do not believe it works anymore: //Disable Question Privacy add_filter('init','remove_wplms_frontend_cpt_query'); function remove_wplms_frontend_cpt_query(){ add_filter('wplms_frontend_cpt_query','wplms_instructor_privacy_filter_remove_questions',999); add_filter('wplms_backend_cpt_query','wplms_instructor_privacy_filter_remove_questions',999); } function wplms_instructor_privacy_filter_remove_questions($args){ if($args['post_type'] == 'question'){ unset($args['author']); } return $args; }
    #55621
    H.K. Latiyan
    Participant
    The code is correct and it works fine. Please try again and check. Let me know if this helps.
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Question Privacy’ is closed to new replies.