Linux 软件免费装
Banner图

Delete & Disable Comments

开发者 helpstring
更新时间 2026年9月24日 02:50
PHP版本: 7.2 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

comments spam cleanup disable comments delete comments

下载

1.0.6 1.0.5 1.0.7 1.0.1 1.1.0

详情介绍:

Delete & Disable Comments gives WordPress administrators a focused screen for comment cleanup and comment shutdown tasks. Open it under Tools → Delete & Disable Comments. Many older sites collect spam comments, unused discussion threads, or imported comment data that no longer belongs on the site. This plugin keeps those maintenance actions in one place without asking you to edit the database manually. Why use it? Common use cases What Disable Comments does The Disable Comments toggle changes the site's comment behavior. When enabled, it sets WordPress defaults for new content to closed, prevents new public comment and ping submissions, hides front-end comment output, removes comment-related UI, unregisters comment-related blocks, and removes the recent comments widget. Product reviews are also closed. The comment REST route remains available for internal editor Notes. It does not delete existing comments. It also does not run a scheduled cleanup. If existing posts still have open comment or ping status, the admin screen shows a maintenance notice with a Close all comments now button. This separate, confirmed action permanently changes those fields and avoids per-post save_post hooks. Switching the toggle off does not reopen those posts. On sites disabled by an older version, the earlier Discussion defaults were not recorded and cannot be restored automatically. Before deleting The default selection covers ordinary comments, pingbacks and trackbacks on non-product content, regardless of status. Product reviews, editor Notes and other custom types require explicit selection. The spam button only deletes ordinary public spam. The CSV export includes all comment types and personal data; keep it private. For a recoverable copy, make a full database backup with your host before deleting. Deletion is permanent. For a step-by-step guide or help with complex cleanups and migration work, see Ostheimer's Delete & Disable Comments guide. Translations The current admin interface is translated into German. Other included locale files may use English for newer messages until their translations are updated. WordPress loads the matching .mo file based on the site language. Text domain: delete-disable-comments.

安装:

  1. Upload the plugin folder to /wp-content/plugins/delete-disable-comments, or install the ZIP via Plugins → Add New → Upload Plugin.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Open Tools → Delete & Disable Comments to review counts, export CSV, delete selected comments, or disable comments site-wide.

屏幕截图:

  • Spam deletion confirmation dialog
  • Selected comment deletion confirmation with affected count
  • Disable toggle and permanent close-posts maintenance notice

升级注意事项:

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.

常见问题:

Is the CSV export a backup?

No. Export all comments as CSV streams the comment table 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. Product reviews are closed by the site-wide toggle.

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 streamed through a protected administrator download. The plugin no longer leaves them in the public uploads directory.

更新日志:

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