Disable Comments – Remove Comments & Protect From Spam


Instantly allow or disallow comments from any post type in WordPress (Pages, Posts or Media) to stop the spammers and gain complete control over your full website. WP-CLI Suppprt & Control comments via XML-RPC and REST-API too!

More About Plugin ◼️ Documentation ◼️ Support Forum

Take Global Control Over Your WordPress Site

Override all comments-related settings throughout your website & manage your comments just the way you want.

Disable Comments On Posts, Pages & Media

Choose which posts, pages or media should allow comments from site visitors & configure Disable Comments accordingly

Disallow Comments On Multi-Site Network

Have multiple websites? Get rid of irrelevant comments on the entire network using Disable Comments Plugin


  • All “Comments” links are hidden from the Admin Menu and Admin Bar;
  • All comment-related sections (“Recent Comments”, “Discussion” etc.) are hidden from the WordPress Dashboard;
  • All comment-related widgets are disabled (so your theme cannot use them);
  • The “Discussion” settings page is hidden;
  • All comment RSS/Atom feeds are disabled (and requests for these will be redirected to the parent post);
  • The X-Pingback HTTP header is removed from all pages;
  • Outgoing pingbacks are disabled.
  • [New] Delete comments by type.

Please delete any existing comments on your site before applying this setting, otherwise (depending on your theme) those comments may still be displayed to visitors. You can use the Delete Comments tool to delete any existing comments on your site.


Easily configure your comment-related settings with an amazing and attractive app-like user interface.

Use WP-CLI control for comment-related settings to disable comments on posts, pages, attachments or everywhere on your website.

Use the quick setup wizard after activating the plugin to instantly configure comment-related settings for your WordPress website.

Instantly disable comments on your documentation pages or WordPress knowledge base with a single click.

Permanently delete certain comment types from your WordPress website including WooCommerce product reviews as well as generic comments.

Block any comments made on your WordPress website via XML-RPC specification and REST API.

Important note: Use this plugin if you don’t want comments at all on your site (or on certain post types). Don’t use it if you want to selectively disable comments on individual posts – WordPress lets you do that anyway. If you don’t know how to disable comments on individual posts, there are instructions in the FAQ.

If you come across any bugs or have suggestions, please use the plugin support forum. I can’t fix it if I don’t know it’s broken! Please check the FAQ for common issues.

Want to contribute? Here’s the GitHub development repository.

A must-use version of the plugin is also available.

Advanced Configuration

Some of the plugin’s behaviour can be modified by site administrators and plugin/theme developers through code:

  • Define DISABLE_COMMENTS_REMOVE_COMMENTS_TEMPLATE and set it to false to prevent the plugin from replacing the theme’s comment template with an empty one.

  • Define DISABLE_COMMENTS_ALLOW_DISCUSSION_SETTINGS and set it to true to prevent the plugin from hiding the Discussion settings page.

These definitions can be made either in your main wp-config.php or in your theme’s functions.php file.




Consider checking out our other WordPress solutions & boost your WordPress website:

🔝 Essential Addons For Elementor: Most popular Elementor addons with 70+ widgets & ready blocks

🔔 NotificationX – Best Social Proof & FOMO Marketing Solution to increase conversion rates.

📄 EmbedPress: EmbedPress lets you embed videos, images, posts, audio, maps and upload PDF, DOC, PPT & all other types of content into your WordPress site with one-click and showcase it beautifully for the visitors.

Templately: Free templates library for Elementor & Gutenberg along with the cloud collaboration for WordPress.

📚 BetterDocs: Best Documentation & Knowledge Base Plugin for WordPress reduce manual support tickets & improve user experience.

WP Scheduled Posts: Advanced editorial calendar & complete solution for WordPress Post Scheduling, social sharing, missed scheduled alerts and more.

ReviewX: WooCommerce Product review plugin that allows users to submit product reviews with multiple criteria, photos, video and more.

Flexia: Most lightweight, customizable & multi purpose theme for WordPress.

Visit WPDeveloper to learn more about how to do better in WordPress with Help Tutorial, Tips & Tricks.


  • Setting Screen for Disable Comments
  • Delete Comments under Tools menu.


Modern Way:

  1. Go to the WordPress Dashboard “Add New Plugin” section.
  2. Search For “Disable Comments”.
  3. Install, then Activate it.
  4. The plugin settings can be accessed via the ‘Settings’ menu in the administration area (either your site administration for single-site installs, or your network administration for network installs).

Old Way:

  1. Upload the plugin folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. The plugin settings can be accessed via the ‘Settings’ menu in the administration area (either your site administration for single-site installs, or your network administration for network installs).


Nothing happens after I disable comments on all posts – comment forms still appear when I view my posts.

This is because your theme is not checking the comment status of posts in the correct way.

You may like to point your theme’s author to this explanation of what they are doing wrong, and how to fix it.

How can I remove the text that says “comments are closed” at the bottom of articles where comments are disabled?

The plugin tries its very best to hide this (and any other comment-related) messages.

If you still see the message, then it means your theme is overriding this behaviour, and you will have to edit its files manually to remove it. Two common approaches are to either delete or comment out the relevant lines in wp-content/your-theme/comments.php, or to add a declaration to wp-content/your-theme/style.css that hides the message from your visitors. In either case, make you you know what you are doing!

I only want to disable comments on certain posts, not globally. What do I do?

Go to the edit page for the post you want to disable comments on. Scroll down to the “Discussion” box, where you will find the comment options for that post. If you don’t see a “Discussion” box, then click on “Screen Options” at the top of your screen, and make sure the “Discussion” checkbox is checked.

You can also bulk-edit the comment status of multiple posts from the posts screen.

I want to delete comments from my database. What do I do?

Go to the tools page for the Disable Comments plugin and utlize the Delete Comments tool to delete all comments or according to the specified post types from your database.


Dicamba 1, 2020
The latest versinn introduced a new design that does not follow the wordpress design standards or admin color scheme in any way, It took me more clicks and longer time to play whack-a-notice and get through the "Setup wizard" than it'd take me to just go to settings and click "Disable all comments" I don't want plugins that ask for e-mail adress to send "marketing emails" whether it's optional or not. Despite the developers claiming they have "optimized things" it's not.
Dicamba 1, 2020
I used to install this plugin on every site that didn't use comments, back when it just disabled comments. Now it has brightly colored admin notifications asking for permission to track identifiable site data. The last thing I need is my clients logging into their sites and seeing what looks like a spam notification asking to track them.
Nuwamba 30, 2020
Sorry to say that v2.0 (under a new owner?) has ruined this plugin. It used to be simple and clean and just doing what it needed to do, now it's a bloated UI, trying to phish for email addresses, with a completely unnecessary "onboarding wizard" (for literally 2 settings), external news integration and whatnot. Switching to a different solution on 100+ sites. Sorry to see this plugin following the latest "buy popular plugin to grab users" trend. One star for basically still working, that's all that's left.
Nuwamba 30, 2020
This plugin used to be so simple and straightforward. Now it's a bloated mess. Why does a simple plugin need to "collect my email address to send me the discount coupon?" Why do you have to take something that works perfectly and ruin it? I manage about 40 websites and am actively uninstalling this on every single one.
Nuwamba 30, 2020
This plugin has always been an 'install and use once' tool, however the recent 2.0 update has made that even more apparent, especially since it appears it has changed owners. I do owe the new author some thanks though: The new update has reminded me to set WordPress's built-in Discussion settings to disable comments and close comments on old posts, and to delete this plugin from all my sites.
Read all 242 reviews

Contributors & Developers

“Disable Comments – Remove Comments & Protect From Spam” is open source software. The following people have contributed to this plugin.


“Disable Comments – Remove Comments & Protect From Spam” has been translated into 33 locales. Thank you to the translators for their contributions.

Translate “Disable Comments – Remove Comments & Protect From Spam” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.


The format is based on Keep a Changelog
and this project adheres to Semantic Versioning.
This will be maiintained from August 19, 2020 – @asif2bd

[2.0.1] – 2020-11-28

  • Bug Fix: Settings page URL issue fixed from plugins page.
  • Improvement: Quick Setup Wizard instructions.

[2.0.0] – 2020-11-28

  • Improved UI for Settings page
  • New feature: Manage Disable Comments settings with WP-CLI
  • New feature: Quick Setup Wizard
  • New feature: Disable Comments via REST-API
  • New feature: Disable Comments via XML-RPC

[1.11.0] – 2020-08-22

  • Introducing Delete Comment by Type – Contribution by garretthyder
  • PHP 7.4 Tested
  • WordPress 5.5 Compatible Tested

[1.10.3] – 2020-07-29

  • Minor fix – changelog backported.


  • Disable “recent comments” Gutenberg block.


  • Fix compatibility with WordPress 5.0 and above.
  • Remove deprecated “persistent mode” feature.




  • Small enhancements to hiding comment-related functionality in the admin.


  • Dropped logic to try and hide the comments link from the Meta widget. Administrators should manually add styling to hide this link, or replace the Meta widget with an alternative.
  • Removed the disable_comments_allow_persistent_mode filter. Define DISABLE_COMMENTS_ALLOW_PERSISTENT_MODE instead.


  • Added a tool for deleting comments in bulk.


  • Fix Javascript errors when the Meta widget is enabled.
  • Hide comments link from the Welcome panel.


  • Hide existing comments if there are any.
  • Filter the comments link in the Meta widget if it is enabled.


  • Remove the comments feed link from the head in WP 4.4 and higher.


  • Delay loading of translation text domain until all plugins are loaded. This allows plugins to modify translations.


  • Hide the troublesome “persistent mode” option for all sites where it is not in use. This option will be removed in a future release.


  • Compatibility updates and code refactoring for WordPress 4.3
  • Adding a few new translations


  • Change the behaviour for comment feed requests. This removes a potential security issue.


  • Move persistent mode filter into a define.
  • Add an advanced option to show the theme’s comment template even when comments are disabled.


  • Allow network administrators to disable comments on custom post types across the whole network.


  • Fix PHP warning when active_sitewide_plugins option doesn’t contain expected data type.


  • Attempt to hide the comments template (“Comments are closed”) whenever comments are disabled.


  • Fix CSRF vulnerability in the admin. Thanks to dxw for responsible disclosure.


  • Compatibility fix for WordPress 3.8


  • Disable comment-reply script for themes that don’t check comment status properly.
  • Add French translation


  • Fix issue with settings persistence in single-site installations.


  • Prevent theme comments template from being displayed when comments are disabled everywhere.
  • Prevent direct access to comment admin pages when comments are disabled everywhere.


  • Make persistent mode option filter available all the time.
  • Fix redirection for feed requests
  • Fix admin bar filtering in WP 3.6


  • Short life in the wild.


  • Added gettext support and German translation.
  • Added links to GitHub development repo.
  • Allow network administrators to prevent the use of persistent mode.


  • Remove X-Pingback header when comments are completely disabled.
  • Disable comment feeds when comment are completely disabled.
  • Simplified settings page.


  • Now supports Network Activation – disable comments on your entire multi-site network.
  • Simplified settings page.


  • Add “persistent mode” to deal with themes that don’t use filterable comment status checking.


  • Allow temporary disabling of comments site-wide by ensuring that original comment statuses are not overwritten when a post is edited.


  • Added the option to disable the Recent Comments template widget.
  • Bugfix: don’t show admin messages to users who don’t can’t do anything about them.


  • Bugfix: Other admin menu items could inadvertently be hidden when ‘Remove the “Comments” link from the Admin Menu’ was selected.


  • Bugfix: A typo on the settings page meant that the submit button went missing on some browsers. Thanks to Wojtek for reporting this.


  • Bugfix: Custom post types which don’t support comments shouldn’t appear on the settings page
  • Add warning notice to Discussion settings when comments are disabled


  • Bugfix: Some dashboard items were incorrectly hidden in multisite


  • Compatibility fix for WordPress 3.3


  • Added the ability to remove links to comment admin pages from the Dashboard, Admin Bar and Admin Menu


  • Usability improvements to help first-time users configure the plugin.


  • Bugfix: Make sure pingbacks are also prevented when comments are disabled.