Short answer: It doesn’t, but you can get around this:
add_filter('comment_form_field_comment', 'my_comment_form_field_comment');
function my_comment_form_field_comment($default){
return false;
}
add_action('pre_comment_on_post', 'my_pre_comment_on_post');
function my_pre_comment_on_post($post_id){
$some_random_value = rand(0, 384534);
$_POST['comment'] = "Default comment. Some random value to avoid duplicate comment warning: {$some_random_value}";
}
If you want this only for certain pages, then you should create a custom page template, for eg “boo.php”, and in the code I posted above, only add these filters if the current page template is boo (use $post->page_template
to get the current page template when doing the check).
Related questions:
Related Posts:
- Change order of comment fields
- How to rearrange fields in comment_form()
- Removing the “Website” Field from Comments and Replies?
- How to add a class to the comment submit button?
- How to wrap submit button of comment form with div
- Getting Post Comments for post ID using WP_Query() and a Custom Loop?
- comments reply script not working
- How to display comment form error messages in the same page
- What are the current recommended best-practices for comments.php?
- How do I set up real anonymous posting in bbpress forums? [closed]
- How to allow the reply link to remain on the comment form after I have reached my 10 nested comment limit?
- Deep customization of the comment form?
- Threaded comments – deleting parent comment leads to orphan comments
- Using filter to add additional fields to comment_form()
- Why are default comments deprecated?
- Comments Reply Form
- Can I change what fields are displayed in the Comments form?
- Comment form not showing up without comments
- Programmatically block commenting by restricting view of comment form
- How can comments be submitted when I don’t have a comment box on a page?
- Is it possible to move a comment that should be a reply to another comment?
- Add comments meta fields to comments metabox on post edit screen
- Custom Field Added In Comment Form Not Showing In Edit
- I have tried using Plugins to remove 72K comments with no success
- Add a drop down list to comment form?
- How To Remove The “Click here to cancel reply” Link From The WordPress Comment Form
- Change “logged in” link in (you must be logged in to post a comment)
- Making a Comment on a page without being on that page?
- customize comment form
- How to save new comment as custom comment type?
- WP comments form (custom) is displaying an extra comment field
- How to modify comments form using comment_form()?
- How to add consent checkbox in comment section
- How to add enctype to multipart/form-data to comment form?
- Changing position of cancel_comment_reply_link and other elements of comment form
- Publish a message on facebook after having posted a comment
- Edit Comment_Field while using T5 Comment Textarea On Top-Plugin
- Share comment to twitter after publishing [closed]
- Disable comments
- How to add attributes to the comment form tag?
- Comment form connection to Gravity Forms
- Auto-fill Custom comment fields
- The comment login form is visible to me but not to the user
- How to call my custom WordPress Comment form without getting the comments?
- How to auto empty comment trash after X days
- Create comments.php form of custom HTML code
- How can I test why the comment hook is not working?
- How can I convert anonymous commenters into registered users?
- comment_post action hook running on page load instead of after a comment is posted
- Add class to comment form div when comment-reply button is clicked
- To whom do emails get sent via the WordPress comments form?
- blank page after submitting a comment
- Display complete comment section via post ID
- changing font size and font of a custom message added after comment
- Notification if Comment Author Field is left empty. E.g. change input border colour
- Assign author to comment from post edit page
- Allow the comment author to delete their own comments
- How to retain comment text on comment form after login/registration?
- Highlight comments of all the site authors
- Check if comment was successfully submited
- Display Custom comments field number
- Ajax submit comments
- Remove the deleted user comment
- Why could my comment_form variable not be working?
- Display avatar with comment form?
- How to make comments private for commentor and post author
- Name of comment field differs on different sites
- comment_notes_before not working
- Add comment_meta to wp_comment_reply
- How to create post comment from different domain
- Get comment id of the individual comments in comment list when modifying comment posted using comment text filter
- How can I embed comments plugin to my own website?
- Custom comment field not showing when logged-in
- Comments on future posts
- get_comment_meta not behaving as expected
- unsetting required fields in the comment reply form
- Adding comments section to website integrated WordPress instance
- Returning error upon comment being flagged as spam
- My posts show 2 comment forms
- Clicking Comment “Reply” Button only replies to first comment
- How to filter comments by comment_meta
- Changing the Comment Fields using Filter (without success)
- Cannot Remove Title Reply from Custom Comment Template for Signup Page
- comment just attachment .. reply just text … can I do that?
- Custom sort comments with select form
- Edit Comments Fields
- Same comment section on every page
- Update post “A” on comment submition on post “B”
- Upload avatar for post comment
- How to display replies to his comments in user profile of current user
- reply comment below the comment box without reload page
- Comment author profile image
- Force to show all fields in comment forms to the logged-in users
- Top rated posts Average rating issue
- Comment Form Fields when user logged in
- Disallowed Tag Present in AMP WordPress ()
- Author name length character limit?
- Check if comment author has url
- How to make comment reply available only for login members of a certain user roles only?
- Delete comments function