| 开发者 | helpstring |
|---|---|
| 更新时间 | 2026年9月24日 02:50 |
| PHP版本: | 7.2 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
save_post hooks.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.
/wp-content/plugins/delete-disable-comments, or install the ZIP via Plugins → Add New → Upload Plugin.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.
No. The CSV is for inspection or manual import workflows. Use your database backup to restore deleted comments and their metadata.
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.
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.
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.
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.
Only users with the manage_options capability, usually administrators. AJAX actions are protected with WordPress nonces and capability checks.
No. This plugin is designed for single-site WordPress installations.
No. Cleanup actions run only when an administrator clicks the relevant button.
CSV files are streamed through a protected administrator download. The plugin no longer leaves them in the public uploads directory.
wp-content/uploads/..mo files for the admin UI.de_AT, de_DE) for admin UI, AJAX messages, and maintenance notices..pot) and fixed the hardcoded “Error loading status” JavaScript message.Tested up to 7.0, sanitized toggle AJAX input, documented intentional bulk SQL queries.wp_posts during AJAX.tests/php/.ddwpc_init() so it no longer iterates over every post on every page request.$wpdb update without triggering save_post, transition_post_status, or wp_after_insert_post.ddwpc_is_disable_comments_enabled(), ddwpc_apply_disable_comments_defaults(), ddwpc_close_all_post_comments_in_db(), and ddwpc_count_posts_with_open_comments().ddc_ to ddwpc_ across PHP and JavaScript.load_plugin_textdomain() call because WordPress 4.6+ auto-loads plugin translations.wp-content/uploads/delete-disable-comments/.