lancer
asked 8 years ago

We can easily moderate all new questions. But is there a way to moderate new comments? I thought maybe it was using the WordPress built in system for comments, but that doesn’t seem to be the case. I have the WordPress comments settings to be manually approved.

1 Answers
Allen
answered 8 years ago

you can check in file : dw-question-answer/inc/handle.php
function :  insert_comment()

when insert a comment, you can make it in hold status. 
https://codex.wordpress.org/Function_Reference/wp_set_comment_status

or 
https://codex.wordpress.org/Function_Reference/wp_insert_comment
wp_insert_comment() with “comment_approved” argument is 0 

lancer
replied 8 years ago

Thank you for the answer. Can this be done in a way so that plugin updates don’t override it?

Allen
replied 8 years ago

i think you should make a back up file for this 😀

Powered by DW Question & Answer Pro