I want to set also text comment as required… but in the backend only email and author are possible.
Without using a javascript validation, how it is possible?
Thank you
Leave a Reply
You must be logged in to post a comment.
I want to set also text comment as required… but in the backend only email and author are possible.
Without using a javascript validation, how it is possible?
Thank you
You must be logged in to post a comment.
You can hook into
'pre_comment_on_post'
and inspect$_POST['comment']
:See
wp-comments-post.php
for more actions and a way to create a useful back link. I didnât include one because some browsers restore all filled form fields when the user clicks the back button. A link would prevent this rather useful behavior.