How stop the process of submitting a comment if a field is empty?
If you use wp-comments-post.php it would be better to customize comment_form by hook comment_form_default_fields, I don’t know why you create the new one. But as per of your functions you can handle it like this add_filter( ‘preprocess_comment’, ‘verify_comment_meta_data’, 1, 1 ); function verify_comment_meta_data( $commentdata ) { $commentdata[‘review_title’] = ( ! empty ( $_POST[‘review_title’] ) ) … Read more