Disable Comments – Remove Comments & Stop Spam [Multi-Site Support]

説明

Disable Comments – Remove Comments & Stop Spam [Multi-Site Support]

WordPress コンテンツ (ページ、投稿、メディア) へのコメントを有効 / 無効にして、スパマーを阻止します。WP-CLI、XML-RPC、REST-API をサポートし、スパムコメントを阻止します。

プラグインの詳細 ◼️ ドキュメント ◼️ サポートフォーラム

WordPress サイト全体をまとめて制御

サイト全体のコメント関連の設定を上書きして、思いどおりにコメントを管理できます。

投稿、固定ページ、メディアでコメントを無効化

どの投稿、固定ページ、メディアでサイト訪問者からのコメントを受け付けるかを選び、Disable Comments をそれに合わせて設定できます

マルチサイトネットワークでコメントを許可しない

複数のサイトを運用していますか ? Disable Comments プラグインを使えば、ネットワーク全体から不要なコメントを一掃できます

Disable Comments の主な機能

  • すべての「コメント」リンクが 管理メニューおよび管理バーに表示されなくなります
  • コメントに関連するすべてのセクション (「最近のコメント」や「ディスカッション」など) は WordPress のダッシュボードに表示されなくなります
  • コメントに関連するウィジェットすべてが無効化されます (そのため、テーマがそれらを利用できなくなります)。
  • 「ディスカッション」設定ページが非表示になります
  • RSS や Atom のコメントフィードは無効化されます (また、これらへのリクエストは親の投稿にリダイレクトされます)。
  • X-Pingback の HTTP ヘッダーはすべてのページから削除されます
  • 発信ピンバックは無効です。
  • ワンクリックでサイトのスパムコメントを完全に止める。
  • Delete comments by type, including WooCommerce product reviews.
  • Disable comments via XML-RPC & REST-API
  • Fully Multi-site Network supported.
  • Manage multiple website network-specific subsites or entire network comments in advance.
  • Exclude Disable Comments Settings based on user roles.
  • Keep the WordPress 6.9+ Block Editor “Notes” comment type working while every other comment stays off.
  • [New in 2.8.0] AI-agent ready: supports the WordPress Abilities API (WP 6.9+), so AI assistants and MCP clients can read your comment settings.

この設定を適用する前に、サイト上のすべてのコメントを削除してください。そうしない場合、テーマによってはこれらのコメントが訪問者に見えてしまうことがあります。”Delete Comments” ツールを利用すると、サイト上のすべてのコメントを削除することができます。

🌟 Disable Comments 2.0 の新機能

驚くほど使いやすいインターフェース
アプリのような魅力的なユーザーインターフェースで、コメント関連の設定を簡単に行えます。

WP-CLI コマンドでコメントを無効化
WP-CLI でコメント関連の設定を操作して、投稿、固定ページ、添付ファイル、またはサイト全体のコメントを無効化できます。

クイックセットアップウィザードですぐに開始
プラグインを有効化した後にクイックセットアップウィザードを使うと、WordPress サイトのコメント関連の設定をすぐに構成できます。

ドキュメントでコメントを無効化
ワンクリックで、ドキュメントページや WordPress のナレッジベースのコメントをすぐに無効化できます。

特定のコメントタイプを削除
WooCommerce の商品レビューや通常のコメントなど、特定のコメントタイプを WordPress サイトから完全に削除できます。

XML-RPC と REST API 経由のコメントを無効化
XML-RPC 仕様や REST API を通じて WordPress サイトに投稿されるコメントをすべてブロックします。

重要な点 : このプラグインは、サイト上に(あるいは特定の投稿タイプに)一切のコメントを望まない場合にお使いください。個々の投稿について選択的にコメントを無効化したい場合は使用しないでください。WordPress 自体にその機能は備わっています。個々の投稿でコメントを無効化する方法が分からない場合は、 the FAQ で説明していますのでご覧ください。

不具合やご指摘があれば、プラグインのサポートフォーラムをご利用ください。不具合の存在を知らなければ、直すこともできないのです ! よくある質問については、 FAQ をご確認ください。

貢献していただけますか ? GitHub リポジトリはこちらです。

このプラグインの Must-use バージョン もご利用いただけます。

高度な設定

プラグインの挙動の一部は、管理者やプラグイン、テーマの開発者がコードを書くことで制御できます。

  • テーマのコメントテンプレートが空になることを避けたい場合は、DISABLE_COMMENTS_REMOVE_COMMENTS_TEMPLATE を定義した上で false と設定してください。

  • 「ディスカッション」設定ページを非表示にしないためには、DISABLE_COMMENTS_ALLOW_DISCUSSION_SETTINGS を定義した上で true と設定してください。

これらの定義は、 wp-config.php か、あるいはテーマの functions.php ファイルのいずれかに記述します。

このプラグインは現在、次のチームがメンテナンスしています: WPDeveloper

💙 Disable Comments を気に入りましたか ?

🔥 WordPress サイト向けの無料ツール

他の WordPress 向けソリューションもぜひチェックして、WordPress サイトを強化してください:

🔝 Essential Addons For Elementor: 200万人以上のユーザーに使われている人気の Elementor アドオン。95種類以上のウィジェットと既成ブロックを収録

🔔 NotificationX – コンバージョン率を高める、ソーシャルプルーフと FOMO マーケティングのソリューション。

🔗 BetterLinks: リンクの短縮、追跡、分析ができる WordPress 向けのリンク管理プラグイン。

📄 EmbedPress: 動画、画像、投稿、音声、地図などあらゆるものを埋め込めるほか、PDF、DOC、PPT などのアップロードにも対応。

Templately: Elementor と Gutenberg 向けの無料テンプレート6000点以上と、WordPress のクラウドコラボレーション機能を提供。

📚 BetterDocs: 手作業でのサポート対応を減らし、ユーザー体験を向上させる WordPress 向けのドキュメントとナレッジベースのプラグイン。

SchedulePress: WordPress の投稿予約、ソーシャル共有、予約投稿の失敗通知などを備えた高機能な編集カレンダー。

Flexia: WordPress 向けの、非常に軽量でカスタマイズしやすい多目的テーマ。

WPDeveloper では、ヘルプチュートリアルや活用のヒントを通じて、WordPress をより活用する方法を紹介しています。

Source Code

The JavaScript and CSS shipped in assets/ are compiled with Grunt and Babel from uncompiled sources that are not included in the plugin zip: JavaScript in src/ and Sass in assets/scss/.

Both the sources and the build configuration live in the GitHub development repository. To build them yourself:

npm install
npm run build

スクリーンショット

インストール

新しい方法:

  1. WordPress のダッシュボードで「新規プラグインを追加」に移動します。
  2. 「Disable Comments」を検索します。
  3. インストールして有効化します。
  4. このプラグインの設定には、管理画面の「設定」メニューからアクセスできます (サイトの管理が単一サイトであっても、あるいはサイトネットワーク管理であっても同様です) 。

従来の方法:

  1. プラグインフォルダーを /wp-content/plugins/ ディレクトリにアップロードしてください
  2. WordPress の「プラグイン」メニューからプラグインを有効化してください
  3. このプラグインの設定には、管理画面の「設定」メニューからアクセスできます (サイトの管理が単一サイトであっても、あるいはサイトネットワーク管理であっても同様です) 。

FAQ

すべての投稿のコメントを無効化したのですが、何も起こりません。投稿を表示すると、まだコメント欄が表示されています。

これは、使用しているテーマが投稿のコメントのステータスを正しく認識していないために起こります。

何が誤っていて、どう修正すればよいかを説明したこちらの解説を、テーマの作者に伝えてみてください。

コメントを無効化した投稿の下部に表示される「コメントは受け付けていません。」というテキストを削除するには、どうしたら良いでしょうか。

このプラグインは、この (そしてその他のコメントに関連する) メッセージを非表示にするためにベストを尽くします。

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 sure you know what you are doing!

全体ではなく、特定の投稿についてのみコメントの無効化を行いたいです。どうしたら良いでしょうか。

コメントを無効化したい投稿の編集ページに行きます。下にスクロールすると「ディスカッション」ボックスがありますが、そこでその投稿のコメントの設定ができます。「ディスカッション」ボックスがない場合は、画面上部の「画面設定」をクリックし、「ディスカッション」のチェックボックスにチェックを入れてください。

投稿画面 から、複数の投稿のコメントステータスの一括編集ができます。

データベースからコメントを削除したいです。どうすれば良いでしょうか。

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

This cannot be undone. Back up your database before running it.

How do I disable comments across an entire multisite network?

Network-activate the plugin. The settings then live under your Network Admin, where you can either apply one configuration to every site at once or configure individual subsites from the network screen. If you activate the plugin on a single site instead, it only ever affects that site.

How do I disable WooCommerce product reviews?

WooCommerce product reviews are stored as comments on the product post type, so disabling comments on product turns reviews off too. To remove reviews that already exist, use the Delete Comments tool and select the product post type.

Can I configure the plugin from WP-CLI?

Yes. Settings and deletion are both scriptable, which is useful across a fleet of sites:

wp disable-comments settings --types=post
wp disable-comments settings --types=page --add
wp disable-comments settings --xmlrpc --rest-api
wp disable-comments delete --types=all

Run wp help disable-comments settings for the full list of options. Full WP-CLI documentation.

WordPress 6.9 added “Notes” in the Block Editor. Will this plugin break them?

No, as long as you allow them. Notes are technically a comment type (note), so a blanket disable would switch them off along with everything else. Use the Enable Certain Comment Types setting to keep Notes working while all other comments stay disabled.

I disabled comments but a cached page still shows the comment form.

As of version 2.8.0 the plugin clears page caches automatically whenever you save settings or delete comments, so this should resolve itself. If your host or CDN is not covered, it can hook disable_comments_purge_caches to clear its own cache at the same moment.

Note that the plugin never touches your object cache — only page caches. The stale thing is rendered HTML.

Can AI assistants read my comment settings?

Yes, on WordPress 6.9 and above. The plugin registers a read-only disable-comments/get-status ability through the WordPress Abilities API, so AI assistants, the command palette and MCP clients can ask the site where comments are disabled. It is read-only and requires the manage_options capability — nothing can change your settings through it.

What happens if I deactivate the plugin?

Comments go back to whatever WordPress and your theme did before. The plugin filters comment status at runtime rather than rewriting your posts, so your original per-post settings are still intact underneath.

The one exception is the Delete Comments tool: comments it removed are permanently gone and deactivating will not bring them back.

評価

2026年7月21日
One of my many websites has been getting hacked by numerous Russian comments, as many as twenty a day! I spent hours online with my hosting company, InMotion Hosting, trying to block this, but they suggested using their CloudFlare feature, which was a total pain! I then researched how to block comments on a WordPress site and this was just as much of a pain, with no way to block comments on all posts and pages. Then I discovered this plugin and it worked in about two minutes to block comments everywhere on the site. Thank you!
2026年4月8日 1 reply
Disable Comments did what I needed without much setup. Easy to use and saves time when managing site content. Worked fine on my end, though a few extra options would make it even better.
2026年3月31日 1 reply
Does exactly what it says. Helps disable comments easily without extra setup. Works fine on most parts. But a few settings could be more flexible. Overall good. tnx 👍
2026年3月6日 2 replies
Installed this to quickly turn off comments across my site. Setup took like a minute and everything worked as expected. Simple settings, no confusion. Could use a few more options maybe, but overall pretty solid.
2025年11月9日
I had a daunting task of first moving 500+ the Pending Comments that I have identified as all SPAM to the Trash folder, page by fricken page, then having to go into the Trash folder to permentantly delete them, page by painstaking page.Then I said there must be a plugin for this. Lo & Behold there was. It was yours. Task finished in less than 3 minute and that included installing and activating the plugin and figuring out which choice I had within the plugin that would accomplish the task. BAM! IT WAS DONE.Bravo!!
280件のレビューをすべて表示

貢献者と開発者

Disable Comments – Remove Comments & Stop Spam [Multi-Site Support] はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Disable Comments – Remove Comments & Stop Spam [Multi-Site Support]” は41ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“Disable Comments – Remove Comments & Stop Spam [Multi-Site Support]” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

このフォーマットは Keep a Changelog に基づいており、
このプロジェクトは Semantic Versioning に従います。
2020年8月19日以降、この方針で管理します – @asif2bd

[2.9.0] – 2026-09-01

  • New Feature: Conditional rules – disable or re-enable comments by taxonomy term, page template, or post age, instead of by post type alone
  • New Feature: Dry-run preview for Delete Comments – see which comments a delete will remove before running it, and download them as CSV first
  • New Feature: Blocked-attempt counter – see how many comment, trackback and REST attempts the plugin has turned away, reported in Site Health
  • New Feature: Export and import settings as JSON, with a diff preview before anything is written
  • New Feature: WooCommerce product reviews are now a first-class setting, separate from ordinary comments, including closing reviews while other product comments stay open
  • New Feature: Theme conflict scanner – diagnoses a theme that still renders a comment form after comments are disabled
  • New Feature: Abilities API write support (WordPress 6.9+) – AI assistants and MCP clients can change comment settings and delete comments, gated on the same capabilities as the admin screens
  • New Feature: The advanced tools now have a Settings tab of their own, leaving the first screen to the core choice of where comments are off
  • Improved: The Delete Comments preview lists the comments it matched – author, date, post and an excerpt – rather than only how many there are
  • Improved: Conditional rule terms are searchable, so a taxonomy with more than 200 terms is fully reachable
  • Improved: Site Health reports conditional rules, so the overview no longer reads “comments are enabled everywhere” while a rule is closing them
  • Improved: Settings screen layout – aligned rule controls, a readable blocked-attempt breakdown, consistent label sizes, and result boxes that match the rest of the plugin
  • Improved: readme and plugin directory listing rewritten for clarity
  • Fixed: CSV backups escape every free-text column, so a comment cannot execute as a formula when the file is opened in a spreadsheet
  • Fixed: An anonymous REST read is no longer counted as a blocked attempt
  • Fixed: “Counting blocked attempts since” keeps its start date instead of showing today’s date until the first block
  • Fixed: A delete that matches nothing no longer reloads the whole settings screen
  • Fixed: The review prompt can be dismissed on every screen it appears on
  • Fixed: Uninstall removes the review-prompt data the plugin created
  • Fixed: The Abilities API set-status summary describes the site’s configuration rather than the calling user’s role exemption
  • Fixed: “Total Comments” says what it counts, so it no longer contradicts the mode-specific delete preview
  • Developer: disable-comments delete gains --dry-run and --export=<file>; new disable-comments export and disable-comments import WP-CLI commands

[2.8.0] – 2026-07-27

  • 新機能: WordPress Abilities API に対応 (WordPress 6.9 以降)。読み取り専用の disable-comments/get-status アビリティを通じて、AI アシスタントやコマンドパレット、MCP クライアントがサイトのコメント無効化状況を問い合わせられます
  • 修正: 設定の保存時やコメントの削除時にページキャッシュを削除するように。以前はコメントを無効化した後もキャッシュされたページがコメントフォームを表示し続けていました
  • WordPress 7.0 に対応

[2.7.1] – 2026-07-22

  • 改善: 全般的な改善

[2.7.0] – 2026-04-05

  • 改善: 全体的なパフォーマンスと安定性を向上

[2.6.2] – 2026-01-20

  • 修正: WordPress 6.9 以降でノートを削除するとエラーが発生する問題

[2.6.1] – 2025-12-02

  • WordPress 6.9 に対応
  • 追加: 「特定のコメントタイプを有効化」設定を導入。WordPress 6.9 で追加されたブロックエディターの「ノート」コメントタイプを除外できます

Older releases are listed in changelog.txt.