How do I automatically insert some text in the comment textbox on submit?
We can submit a comment without text as this function allows the user to submit a comment without any text in the textarea. Now all you need to do is hide the comment textarea with some display:none; css. if ($comment_data[‘comment_content’] == ‘%dummy-text%’) { $comment_data[‘comment_content’] = ”; // replace dummy text. } return $comment_data; } add_filter(‘preprocess_comment’, … Read more