Linux 软件免费装
Banner图

Delete & Disable Comments – Bulk Delete Spam & All Comments

开发者 helpstring
更新时间 2026年11月25日 03:45
PHP版本: 7.2 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

remove comments disable comments delete comments delete spam comments delete all comments

下载

1.0.5 1.0.7 1.0.1 1.0.6 1.1.0 1.1.1

详情介绍:

Delete all comments, bulk delete spam, or disable comments on your whole WordPress site – safely, even when there are tens of thousands of them. Everything happens on one screen under Tools → Delete & Disable Comments. Why site owners choose it Proven on real sites One user removed 32,509 unwanted comments from a client site with a PHP memory limit of only 128 MB, after the standard WordPress comment screens had failed with server errors. Typical uses Try it before you install Use the Live Preview button on this page to open a temporary demo site in your browser. It comes with sample comments, spam, pingbacks and editor Notes, so you can try every button safely. Nothing is installed on your own site. Before you delete Deletion is permanent. The CSV export is a readable copy of the comment rows, not a restorable backup: it omits comment metadata and contains personal data such as names and email addresses, so keep it private. For a full safety net, make a database backup with your host first. The default selection covers ordinary comments, pingbacks and trackbacks on non-product content, regardless of status. Product reviews, editor Notes and other custom comment types are only deleted when you select them. Delete Spam Comments only removes spam among ordinary comments, pingbacks and trackbacks. What the disable switch does When comments are disabled, new content defaults to closed comments and pings, the comment form and existing comments are hidden on the front end, the Comments menu, the Recent Comments widget and comment feeds are removed, and product reviews are closed. Existing comments stay in the database until you delete them. Block editor Notes keep working. Some existing posts may still be marked as open. The screen then offers Close all comments now, which permanently closes them in one database update. Switching comments back on restores your previous Discussion defaults, but posts closed this way stay closed. Sites disabled with a version before 1.1.0 did not record those defaults. Need help with a complex cleanup? For a step-by-step guide or professional help with large cleanups and migrations, see Ostheimer's Delete & Disable Comments guide. Translations The admin interface is available in English and German. WordPress loads the matching language file automatically based on the site language. Text domain: delete-disable-comments.

安装:

  1. In WordPress, go to Plugins → Add New, search for Delete & Disable Comments, then install and activate it. Alternatively, upload the ZIP via Plugins → Add New → Upload Plugin.
  2. Open Tools → Delete & Disable Comments.
  3. Review the counts, export a CSV if you want a copy, then delete spam, delete selected comments, or disable comments site-wide.

屏幕截图:

  • Bulk delete thousands of comments in safe batches with a live counter
  • Confirmation before deleting spam comments
  • Confirmation with the exact number of comments that will be deleted
  • Disable comments site-wide, with a one-click option to close comments on existing posts

升级注意事项:

1.1.1 Listing and naming update only. No functional changes. 1.1.0 Cleanup now protects Notes and reviews by default. Review the selected types before deleting. CSV exports are not restorable backups. 1.0.7 Complete comment cleanup and safer CSV backups. Recommended for sites that delete spam or open backups in spreadsheet applications. 1.0.6 Privacy hardening for CSV backups. Backup files are now streamed to administrators and are not left in public uploads. 1.0.5 Translation release with broad EU locale support for the admin interface. 1.0.4 Maintenance release for Plugin Check and WordPress 7.0 compatibility metadata. 1.0.3 Recommended if the disable-comments toggle stayed on “Updating...” or large sites took too long while toggling comments off. 1.0.2 Recommended for sites using WPML, Yoast SEO, Polylang, or any plugin that hooks into post saves. 1.0.1 Prefix rename to ddwpc_, safer paths, and backup files moved to the uploads directory. 1.0.0 Initial release.

常见问题:

How do I delete all comments in WordPress?

Open Tools → Delete & Disable Comments. Keep Public comments and pingbacks selected, add other types if you want them removed as well, click Delete Selected Comments and confirm. The plugin deletes in batches and shows a running count until the selected comments are gone.

How do I delete only spam comments?

Click Delete Spam Comments and confirm. Only comments, pingbacks and trackbacks marked as spam are removed. Approved and pending comments, product reviews and editor Notes stay.

How do I disable comments on my whole site?

Switch on the Disable Comments toggle. Comment forms and existing comments disappear from the front end, and new comments and pings are refused. If the screen then shows Close all comments now, you can also close the comment status on existing posts.

Can it handle tens of thousands of comments on shared hosting?

Yes. Each request processes a batch of 100 comments, so memory use and request time stay small. If you close the browser tab during a cleanup, start it again; it continues with the comments that are left.

Will it delete WooCommerce product reviews?

Only if you select Product reviews. The default cleanup and the spam button keep them. Disabling comments site-wide does close product reviews for new submissions.

Is the CSV export a backup?

No. Export all comments as CSV creates a CSV file of the comment table and sends it to an authenticated administrator. It omits comment metadata and cannot be restored by this plugin. Make a full database backup before permanent deletion.

Can the plugin restore deleted comments from CSV?

No. The CSV is for inspection or manual import workflows. Use your database backup to restore deleted comments and their metadata.

Why can some exported values start with an apostrophe?

Comment fields that look like spreadsheet formulas are prefixed with an apostrophe in the CSV. This keeps untrusted comment text visible while preventing common spreadsheet applications from evaluating it as a formula. Remove that protective prefix only in a trusted import workflow.

Does disabling comments delete existing comments or editor Notes?

No. The toggle prevents and hides public comment functionality, but existing records stay in the database until you explicitly delete them. Editor Notes stay available in the block editor through the comment REST route. Product reviews are closed by the site-wide toggle.

Should I switch comments back on before deactivating the plugin?

Yes, if you want comments again. Switching the toggle off restores your earlier Discussion defaults. If you deactivate the plugin while comments are disabled, the hiding and blocking stop, but new content keeps the closed Discussion defaults until you change them under Settings → Discussion. Your toggle setting is kept for a later reactivation.

What does “Close all comments now” do?

When disable mode is active, some existing posts may still have comment_status or ping_status set to open. The button permanently closes those fields in one SQL update. Switching the toggle off does not reopen them.

Is the close action safe with WPML, Yoast SEO, or Polylang?

The close action does not call wp_update_post() for every post and does not trigger save_post hooks. That keeps it suitable for sites using WPML, Yoast SEO, Polylang, and other plugins that react to post saves.

Who can use the plugin screen?

Only users with the manage_options capability, usually administrators. AJAX actions are protected with WordPress nonces and capability checks.

Does it support WordPress multisite?

No. This plugin is designed for single-site WordPress installations.

Does it run scheduled cleanup jobs?

No. Cleanup actions run only when an administrator clicks the relevant button.

Where are CSV exports stored?

CSV files are sent as a protected administrator download. The plugin does not leave them in the public uploads directory.

更新日志:

1.1.1 1.1.0 1.0.7 1.0.6 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0