Wp check comments before posting trouble

I am making a custom comments module and i m urgently need to implement a specific comment`s checking before posting them. In details , smth like:
if($comment->comment_content!=’certain sentence’) return false; and to place that in some check_comment function. And then after checking if false was returned – output message dialog with warning.

Read more here: Wp check comments before posting trouble

Leave a Reply

Your email address will not be published. Required fields are marked *