Home / Blog / How to Disable Comments in WordPress (6 Methods, 2026)
Guides 9 min read

How to Disable Comments in WordPress (6 Methods, 2026)

Table of Contents

WordPress ships with comments enabled by default. That made sense when blogs lived and died by reader engagement in 2005. In 2026, most site owners want comments off — spam, maintenance overhead, and GDPR exposure all outweigh the benefit for the majority of sites.

The good news: WordPress gives you several ways to disable comments, ranging from a single checkbox to a purpose-built plugin. The right method depends on whether you want to silence comments everywhere, on specific content types, or only going forward. This guide covers every approach, with the exact menu paths.


Method 1 — Disable Comments Site-Wide via Discussion Settings

This is the native WordPress approach for turning off comments on all new content. It does not retroactively close comments on already-published posts.

Steps:

  1. Log in to your WordPress admin panel.
  2. Go to Settings → Discussion.
  3. Under Default article setting, uncheck “Allow people to post comments on new articles”.
  4. While you’re here, you may also want to uncheck “Allow link notifications from other blogs (pingbacks and trackbacks)” to stop trackback spam.
  5. Click Save Changes.

From this point on, any newly published post or page will have comments closed by default. Existing content retains whatever comment status it was published with — to change those, see Methods 2 and 4 below.

What this setting controls: The Discussion screen manages site-wide defaults for comments, pingbacks, trackbacks, comment moderation rules, and spam blocklists. Unchecking comments here sets the default for new content; it does not override per-post settings already saved.


Method 2 — Disable Comments on a Single Post or Page

WordPress lets you override the global setting on any individual post, page, or custom post type entry.

Steps (Block Editor / Gutenberg):

  1. Open the post or page in the editor.
  2. In the right sidebar, click “Discussion” (under the post settings panel). If you don’t see it, click the three-dot menu (⋮) at the top right → Preferences → Panels, and enable Discussion.
  3. Uncheck the “Open” checkbox to disable comments.
  4. Update or publish the post.

Steps (Classic Editor):

  1. Open the post in the editor.
  2. Scroll down to the Discussion meta box. If it’s not visible, click Screen Options at the top of the page and check the Discussion checkbox.
  3. Uncheck “Allow Comments on this post”.
  4. Update the post.

This per-post toggle takes precedence over the site-wide Discussion setting in either direction — you can re-enable comments on a single post even if they’re globally off.


Method 3 — Bulk Close Comments on Existing Posts

If you’ve already published dozens or hundreds of posts and want to close comments on all of them at once, use WordPress’s built-in bulk edit feature.

Steps:

  1. Go to Posts → All Posts (or Pages → All Pages).
  2. At the top of the list, set “Bulk actions” to “Edit” and select all posts using the checkbox in the header row. If you have more than one page of results, you’ll need to repeat this per page, or use the screen options to increase the number of posts displayed per page.
  3. Click Apply.
  4. In the bulk edit panel that appears, find the “Comments” dropdown and set it to “Do not allow”.
  5. Click Update.

This writes the closed comment status directly to each selected post’s record. It’s the fastest native method for retroactively closing comments across existing content without a plugin.


Method 4 — Auto-Close Comments After X Days

WordPress has a built-in timer that closes comments automatically after a post reaches a certain age. This is useful if you want discussion to be active shortly after publication but don’t want old posts accumulating spam.

Steps:

  1. Go to Settings → Discussion.
  2. Under Other comment settings, check “Automatically close comments on articles older than” and enter a number of days (e.g., 14 or 30).
  3. Click Save Changes.

WordPress will automatically mark eligible posts as closed once they pass that threshold. This runs on a schedule, so there may be a short delay before older posts are updated.


Method 5 — Disable Comments on Media Attachments

WordPress creates an attachment page for every uploaded image or file, and those attachment pages can accept comments. Most sites never intend this. Disabling them requires a small code addition since the Discussion settings page does not surface media as a separate content type.

Option A — Via functions.php or a site-specific plugin:

Add this to your theme’s functions.php or a custom plugin:

add_filter( 'comments_open', function( $open, $post_id ) {
    if ( get_post_type( $post_id ) === 'attachment' ) {
        return false;
    }
    return $open;
}, 10, 2 );

Option B — Via the Disable Comments plugin (Method 6): The plugin surfaces media as a toggleable post type, so you can disable attachment comments with a single checkbox — no code required.


Method 6 — Use the Disable Comments Plugin

The Disable Comments plugin by WPDeveloper is the most thorough option when you want comments completely gone, including from the admin UI. It is free, open-source, and currently at version 2.7.0 (released April 5, 2026) with a 4.7-star rating across 278 reviews.

What it does beyond the native settings:

  • Hides the Comments menu item and admin bar links entirely
  • Removes comment-related dashboard widgets (Recent Comments, Discussion)
  • Disables comment widgets so your theme cannot display them
  • Hides the Discussion settings page (configurable)
  • Disables comment RSS/Atom feeds and redirects feed requests
  • Removes the X-Pingback HTTP header from all pages
  • Disables outgoing pingbacks
  • Blocks comments submitted via REST API and XML-RPC
  • Includes a Delete Comments tool to permanently remove existing comments from the database by post type
  • Full multisite/network support

Installation and setup:

  1. Go to Plugins → Add New.
  2. Search for “Disable Comments”.
  3. Click Install Now, then Activate.
  4. Go to Settings → Disable Comments (the plugin’s settings appear there).
  5. Choose your scope: Everywhere (all post types) or select specific post types such as Posts, Pages, or Media.
  6. Save.

To delete existing comments: After disabling, go to Tools → Delete Comments within the plugin and select which comment types to permanently remove from the database.

Important note from the plugin itself: Delete existing comments before applying the disable setting if your theme displays them independently of WordPress’s comment status check — otherwise old comments may remain visible.


Method 7 — Remove Existing Comments (Native WordPress)

Disabling comments stops new ones from coming in, but it does not delete comments already in your database. To remove them without a plugin:

  1. Go to Comments in the WordPress admin.
  2. Select all comments using the top checkbox.
  3. From the Bulk actions dropdown, select “Move to Trash” and click Apply.
  4. Go to the Trash tab and click “Empty Trash” to permanently delete them.

For large volumes of spam comments, the Disable Comments plugin’s Delete Comments tool (Method 6) is significantly faster than doing this page by page.


Manage WordPress Comments with AI via Easy MCP AI

Comments are part of the core WordPress data model, and Easy MCP AI — a free, open-source plugin that turns your WordPress site into a remote MCP server — includes comment management in its 96 core WordPress tools.

Once connected to an MCP-capable AI client like Claude, you can manage comments through conversation rather than clicking through admin screens:

  • “List all approved comments on posts published before 2025.”
  • “Close comments on every post in the ‘News’ category.”
  • “Delete all comments marked as spam.”
  • “How many pending comments are waiting for moderation right now?”

Easy MCP AI connects WordPress to 16 AI clients — including Claude.ai, Claude Desktop, ChatGPT, Cursor, and n8n — through a single self-hosted MCP server. It covers 215 tools across 96 core WordPress functions (posts, pages, media, users, taxonomy, comments, blocks, menus, and more), plus integrations with WooCommerce, ACF, BuddyPress, Yoast, Rank Math, AIOSEO, and data platforms like Google Analytics and SEMrush.

Setup takes four steps: install Easy MCP AI → enable relevant plugin integrations under Easy MCP AI → Plugins → copy your MCP server URL from Easy MCP AI → Dashboard → add it as a custom connector in your AI client and authenticate via OAuth.

For bulk comment operations across large sites, doing it through Claude with Easy MCP AI is considerably faster than working through the WordPress admin page by page.

Get Easy MCP AI from the WordPress plugin directory


Comparison: Which Method to Use

GoalBest method
Stop comments on all future postsSettings → Discussion (Method 1)
Close comments on one specific postPer-post Discussion panel (Method 2)
Bulk-close comments on existing postsBulk edit in Posts list (Method 3)
Auto-close after a time periodSettings → Discussion, auto-close timer (Method 4)
Disable comments on media attachmentsDisable Comments plugin or functions.php (Methods 5–6)
Hide comments from the admin UI entirelyDisable Comments plugin (Method 6)
Delete existing comments from the databaseDisable Comments → Delete Comments tool, or Comments trash (Methods 6–7)
Bulk comment management with AIEasy MCP AI + Claude (MCP method)

Key Facts

  • Settings → Discussion only applies to new content — it does not retroactively change comment status on published posts.
  • The per-post Discussion panel in Gutenberg may be hidden by default; enable it under Preferences → Panels.
  • The Disable Comments plugin (by WPDeveloper) is currently version 2.7.0 as of April 2026, free, open-source, and rated 4.7/5 across 278 reviews on WordPress.org.
  • Disabling comments in WordPress does not delete them — they remain in the database until you explicitly remove them.
  • Media attachments (uploaded images/files) have their own comment status and are not controlled by the main Discussion setting; you need the plugin or a code filter to address them.
  • Easy MCP AI includes comment management in its 96 core WordPress tools and exposes them to AI clients like Claude through the Model Context Protocol.

Conclusion

There is no single right answer for how to disable comments in WordPress — the correct method depends on your scope. For a fresh start on new content, the Discussion settings checkbox takes 30 seconds. For thorough removal including admin UI cleanup and database deletion, the Disable Comments plugin is the most complete native option. For managing comments at scale across a large site, pairing WordPress with an AI client via Easy MCP AI turns a tedious page-by-page task into a single prompt.

Get Easy MCP AI from the WordPress plugin directory


Official Sources

Ready to control WordPress with AI?

Install Easy MCP AI on your site and connect Claude, Cursor, or any AI assistant in minutes.

Related Posts

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.