The check if comments are enabled is performed by comments_open()
function.
You can make it always return false via a filter with something like this:
add_filter('comments_open', '__return_false');
Other way would be to make comments available to only registered users (that is if you don’t have open registration) in Settings > Discussion
.
Related Posts:
- How to wrap submit button of comment form with div
- Custom comment type based on thread level
- How to add internal, revision comments to page updates
- Comment Reply javascript
- Is there any advantage to emptying comment spam?
- Completely disable comments
- how to make author to write comment on only his own posts?
- How do you remove the ability for a user to make a comment or post on a page?
- Twitter/Facebook login for comments [closed]
- Customize reply form different to comment form
- Add delete, approve, spam Links to Comments
- FB – Comment Moderation Tool bug or error in the code?
- If new comment posted in custom post – send notification to custom email from custom field
- Disable Admin account being emailed for comment notification
- How to allow commentetors to get notifications on replies to their comments?
- How can I change the link in comment form “Log in to post a comment”?
- remove_filter( ‘comment_author’, ‘floated_admin_avatar’ ); doesn’t work
- WordPress admin bar showing pending comments which cannot be selected or modified after deleting parent page
- Get only one comment per post with get_comments
- Does wp_new_comment expect a comment in HTML?
- Comments: Approve when admin Replies, from the Front end
- Setting comment text as required
- How to remove these comments and html tags from the content?
- Show only if x comments?
- Display WordPress commenter nice name
- In wp_list_comments(), what is a short_ping?
- Ajax comments not working
- Changing the comments link produced by the get_comments_link() and get_comments_pagenum_link() functions
- How to display nothing (instead default) when no user gravatar is present?
- Check if someone recently commented in one of my posts
- Redirect to page 2 after comment
- Sync comment data
- How to change avatar of the comment author using comment ID?
- WordPress Comments are automatically publishing
- Comment displaying full name even after setting another display name?
- How to move comments box above comments
- Automatically increase comment karma on comment save
- Ability to leave comments broken
- How to disable comment flood temporarily in a single scope
- How to create a seperate commenting system?
- How to handle upvotes and downvotes of disqus comments after importing disqus comments to wordpress?
- Change how many approved comments must user have
- All users/comments suspected as bot? [closed]
- Count comment threads, not total comments in a post
- comments in Admin
- Display Custom comments field number
- Get all child comments ids from parent comment id
- Trying to post a wordpress comment on my site redirects to 127.0.0.1
- How can get comment link by comment id?
- How to amend time format of comments, using child-theme?
- Make user’s name display as the site name in comments if it matches certain roles
- Display avatar with comment form?
- Adding SQL source code to comments
- Which hook do I use to edit pending comment count on wordpress dashboard?
- Add comment_id on Comments page within wp-admin
- Sent comments notifications to multiple users
- comment button shows only logged in users wordpress
- Getting comments of an specefic user
- I update a post and it creates a pingback? Any idea why?
- How can I embed comments plugin to my own website?
- get only one last comment from each post
- Limit action in comment according to IP
- How to get recent comment link
- assumed as comment line
- stumped on add_action hook to delete_comment – any ideas?
- Can I create a new comment type?
- Allow tags between shortcode in comments
- How / where is the wp_query object created for RSS feeds?
- Separate page for comments using permalinks and add_rewrite_rule
- Return count for characters in the comment and perform action based on the length
- Cannot Remove Title Reply from Custom Comment Template for Signup Page
- comments.php remove date/time’s #hyperlink
- How to make email field not required in comments?
- I have an odd field with a purple background, mentioning HTML-codes to use while leaving comments
- No comment Section but still got a Comment
- Order comments in admin by custom date
- WordPress Comments – Divide by conversation like Medium.com
- I want to limit registered user to 1 comment per post in WordPress
- What is wrong with this? [closed]
- Comment moderation
- I have tried using Plugins to remove 72K comments with no success
- Redirect first time comments
- Posting XML in comment section
- How to check if post has previous_comments_link() and next_comments_link()
- Comment text area in single blog post and show comments if approved
- Comments – Ensure the correct field is highlighted for nested replies
- How to ‘If Author’ Comments Check
- selectively disable akismet
- Disqus moderation page not working in WordPress admin section
- Comment Blacklist
- Comment forum to display under the comment you’re replying too
- WordPress error when sending comment
- WordPress Page Template: Comment Filtering with Querystring
- Modify “Recent Comments” List in WP-Admin
- Comment submission & navigation redirects to default language
- comments are going to spam
- How to hide the login / profile urls on top of comment box for a post
- wp_list_comments adds unnecessary elements
- How to enable truly anonymous posting in bbPress forums? [closed]
- Add ACF Quick Edit Columns on Comments