Are you eager to learn how you can disable Comments on your WordPress Website?
A Couple of years ago, when all these bots hadn’t been too vibrant on the internet, comments were an indication that an article or web page is good or so.
But since the rise of all these Black Hat SEO Tools, WordPress Users have no other choice but to simply turn off comments in other to stay clear of spam.
In this article, you’re going to learn the easiest ways to disable WordPress Comments either for your entire website or for just some pages on your site.
Why Disable your WordPress Comments?
The most potent reason why WordPress Users remove Comments is because of Link Spam by all these Shady Tools.
Although, some users may decide to turn off comments for some of their pages which may be an announcement or a Quiz, or just about any page.
Some Businesses that only have basic pages like About Us, Contact, Team, etc, don’t need comments on these pages so they can disable them.
Is Disabling WordPress Comments worth it?
As I said, all these paid link-building Black Hat SEO Tools are targeting WordPress Comments the most, and although Akismet is trying, it’s only a tool and can’t uncover every single spam.
Well, I don’t believe disabling WordPress Comments is worth it because it’s important to know what your readers think as well as answer their questions if they have one.
You’ll notice that the comments are always open on this website. In my first couple of months, this site was like under attack by these spammy bots even though I had Akismet enabled.
What I did was simply use a button to hide the Comments Section, if you scroll down, you’ll have to click on the “Leave a Review” button before you can leave a comment.
You can also use Cloudflare and toggle the under attack option so that your visitors are shown a JavaScript Challenge, this way bots can’t access your website.
How to Completely Disable WordPress Comments on your entire Website
There are 3 ways to effectively disable Comments throughout your entire WordPress Website:
- Using A Plugin.
- Via Theme Editor.
- Toggling Options in WordPress Settings.
Using a Plugin
If you want to completely disable WordPress Comments on your Entire Website using a Plugin, then the best to use is WP Code, you can install it from Plugins → Add New.
Once the WP Code Plugin is installed and activated, all you need to do now is to Hover on Code Snippets from the left navigation panel and then click on Library.

This plugin comes with a lot of Pre-configured Code Snippets which you can just toggle on and they’ll make changes to your website.
You should use the search bar and search for disable comments, it’ll load the result and you should then click on use snippet.
The Plugin is going to load the Code Edit Page where you simply need to do nothing but toggle the active button and click on the blue update button.
Via Theme Editor
Some WordPress users like to go through the Code Route and don’t want to install any more WordPress Plugins on their website, if you’re one of them, then this section will interest you.
To Disable WordPress Comments Manually, you’ll have to copy the code below and paste it into your Theme’s Functions.php file.
add_action('admin_init', function () {
// Redirect any user trying to access comments page
global $pagenow;
if ($pagenow === 'edit-comments.php') {
wp_safe_redirect(admin_url());
exit;
}
// Remove comments metabox from dashboard
remove_meta_box('dashboard_recent_comments', 'dashboard', 'normal');
// Disable support for comments and trackbacks in post types
foreach (get_post_types() as $post_type) {
if (post_type_supports($post_type, 'comments')) {
remove_post_type_support($post_type, 'comments');
remove_post_type_support($post_type, 'trackbacks');
}
}
});
// Close comments on the front-end
add_filter('comments_open', '__return_false', 20, 2);
add_filter('pings_open', '__return_false', 20, 2);
// Hide existing comments
add_filter('comments_array', '__return_empty_array', 10, 2);
// Remove comments page in menu
add_action('admin_menu', function () {
remove_menu_page('edit-comments.php');
});
// Remove comments links from admin bar
add_action('init', function () {
if (is_admin_bar_showing()) {
remove_action('admin_bar_menu', 'wp_admin_bar_comments_menu', 60);
}
});
If you don’t know where your functions.php file is located, you can go through this route Your Dashboard → Appearance → Theme Editor → functions.php file on the right of the editing interface.
Via WordPress Settings
You can use this alternate manual method if you’re not comfortable with adding a piece of code to your WordPress Website.
The first step you need to take is to log in to your WordPress Dashboard then on the left navigation panel, hover on settings then click on Discussion.
Find the Default Posts Settings option then uncheck the option that says allow people to submit comments on new posts. This will turn off comments on any new posts on your WordPress Website.
But our goal is to disable comments even on already published posts, so you’ll have to scroll to the Other Comments Section, then tick the box before the Automatically close comments on posts older than [] days.
Don’t forget to enter 0 in the box before days and then click on Save at the bottom of the page and you’ve successfully turned off comments for your entire WordPress Website.
How to Disable Comments on Specific WordPress Posts and Pages
If you want to disable comments on specific WordPress Posts or Pages, you’ll have to Navigate to Posts and then hover over the title of the post, and click on Edit.
On the Right Panel of the Editor, you should scroll down to the Discussion option and then uncheck the box beside Allow Comments and then click on Update to save your settings.

With that, you’ve successfully turned off comments for that particular post, if you view it in the front, you won’t see the comments section.
Your WordPress Pages have the comments section turned off by default, so don’t worry about editing that.
How to Bulk Disable Comments on WordPress Posts and Pages
Maybe you’ve got a group of posts that you don’t want your readers’ opinions on or that Link Spam tools are consistently attacking, here’s how you can disable comments on them.
- Click on Posts from the Left Navigation Panel.
- Use the Tick Boxes to select all the WordPress Posts you want to disable comments on.
- Then, Click on Bulk Actions, and from the drop-down select Edit.
- Click on Apply and then the page is going to reload.
- You’ll see a couple of options, click on the Comments option, then select Do not Allow.
- Click on the Update Button and your Changes will be live.


How To Delete All Current WordPress Comments
Since you no longer want people to leave comments on your WordPress Website, you probably don’t want new visitors to see old comments, so here’s how you can delete them.
Login to your WordPress Dashboard, then click on Comments from the left navigation panel and find the comments that you no longer want to display on your Site’s front.

Tick the Check boxes beside these comments and click on the Drop Down Arrow beside Bulk Actions, then click on Apply. Your comments will now retire to the trash and can’t be seen in the respective Articles.
Conclusion
After completing the steps in this article, you should be able to do all of the following:
- Turn Off Comments across your WordPress Website.
- Turn off Comments on Specific WordPress Posts.
- Delete Old WordPress Comments
- Bulk Delete WordPress Comments.
I hope you find this article helpful enough to share with others and don’t forget to leave a comment below.
You can check out more WordPress Related Tutorials ← Here.