Prefill the textarea in comment_form

I was answered in the WordPress Forums. The solution is to pass the entire HTML for the comment_field, like this: ‘comment_field’ => ‘<textarea id=”comment” name=”comment” cols=”45″ rows=”5″ maxlength=”65525″ required=””>’. __(‘Prewritten comment’,’textdomain’).'</textarea>’,

Is there a way to edit the markup of comment_form()?

I covered just the other day some of the comment (textarea) filters here, https://wordpress.stackexchange.com/a/366147/144392 But the filters you may want to look into are most likely, comment_form_fields comment_form_field_{$name} EDIT 11.5.2020: Codex example for comment_form($args), $comments_args = array( // Change the title of send button ‘label_submit’ => __( ‘Send’, ‘textdomain’ ), // Change the title of … Read more

Get Comment With Meta value

WP_Comment_Query doesn’t pull comment meta. You can search by comment meta but the query doesn’t return that data. You could easily check this yourself by looking at the Codex. You need to loop over the results and run get_comment_meta(), or essentially do the same via a filter on the_comments. It is also possible to add … Read more

Comment_form and GD Star Rating

Got it! The key was a custom callback on wp_list_comments. Here’s the snippet of code I used within my comments: <?php if (defined(“STARRATING_INSTALLED”)) : ?> <div class=”rating” style=”float: right”> <?php wp_gdsr_comment_integrate_standard_result(get_comment_ID()); ?> </div> <?php endif; ?>

Custom comments form

I don’t think this the code/fucntion you want to change, This code/fucntion is just creating the form fields. You should look in your comments.php file for the changes that you are asking for.