Disable Comments icon
Security

Disable Comments

Disable comments site-wide or by post type, delete existing comments in bulk, and block comment spam via REST API and XML-RPC. Multisite ready.

  • By WPDeveloper
  • v2.9.1
  • Updated

Overview

Disable Comments describes itself as: “Disable comments site-wide or by post type, delete existing comments in bulk, and block comment spam via REST API and XML-RPC. Multisite ready.”

It is active on 1+ million WordPress sites and rated 4.7 out of 5 by 282 users on WordPress.org. Developers can extend it through 6 actions and 5 filters, listed below.

We haven't published a hands-on review of Disable Comments yet. Want one, or need help with it? Send us a request.

How to install Disable Comments

  1. Open the plugin installer. In your WordPress dashboard go to Plugins → Add New Plugin.
  2. Search for it. Type “Disable Comments” and pick the one by WPDeveloper.
  3. Install and activate. Click Install Now, then Activate.
Install with a zip file or WP-CLI

Download the zip from the WordPress.org plugin page, then go to Plugins → Add New Plugin → Upload Plugin, choose the file and click Install Now. Or from the command line:

wp plugin install disable-comments --activate

Requirements: WordPress 5.0+ · PHP 7.0+ · tested up to WordPress 7.1.4

Hooks & customisation

Disable Comments 2.9.1 fires 6 actions and 5 filters. Use them from your child theme or a snippets plugin to change how it behaves without editing its files.

disable-comments — top hooks
// Filter the list of known comment types shown in the "Enable Certain Comment Ty…
apply_filters( 'disable_comments_known_comment_types', $known_types );

// Filters the sites purged after a network-wide settings change.
apply_filters( 'disable_comments_purge_blog_ids', $blog_ids );

// Fires when Disable Comments has changed what the front end renders.
do_action( 'disable_comments_purge_caches' );

// Filter whether the review prompt may be shown at all.
apply_filters( 'disable_comments_show_review_prompt', true );

// Action in disable-comments.php
do_action( 'breeze_clear_all_cache' );

// Filter in disable-comments.php
apply_filters( 'disable_comments_count_blocked_attempts', true );

Browse all 11 hooks with examples →

Need Disable Comments customised?

Tell us what you want changed, added or fixed and we'll reply with an estimate.

WP EXPERTS is independent and not affiliated with WPDeveloper. Plugin names and logos belong to their owners. Version, rating and install figures from WordPress.org, checked Nov 17, 2026.

Alternatives in Security

See all →

The best anti-spam protection to block spam comments and spam in a contact form. The most trusted antispam solution for…

5+ million installs Reviewed 43 hooks

Firewall, Malware Scanner, Two Factor Auth, and Comprehensive Security Features, powered by our 24-hour team. Make security a priority with…

5+ million installs 98 hooks

Easily improve site security with WordPress Hardening, Two-Factor Authentication (2FA), Login Protection, Vulnerability Detection and SSL certificate.

3+ million installs 116 hooks

Simplified WordPress management. Manage site info, maintenance, security, & redirects.

3+ million installs 7 hooks