| 开发者 | helpstring |
|---|---|
| 更新时间 | 2026年5月26日 15:52 |
| PHP版本: | 7.2 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
save_post hooks.save_post hooks, which is useful for sites using WPML, Yoast SEO, Polylang, or other plugins that listen to post updates.
Translations
The plugin ships with gettext translation files for broad EU language support, including German and additional EU locales. WordPress loads the matching .mo file automatically 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.Yes. Use Download Backup before Delete All Comments. The backup is generated on demand and streamed as a protected administrator download.
No. The CSV backup is for safekeeping or manual import workflows. The plugin does not include a restore tool.
No. The disable toggle prevents and hides comment functionality, but existing comment records stay in the database until you explicitly delete them.
When disable mode is active, some existing posts may still have comment_status or ping_status set to open. The button closes those fields in one SQL update.
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.
Backups are streamed through a protected administrator download. The plugin no longer leaves CSV files 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/.