Beschrijving
Comments Deletion provides a safer and more flexible way to clean comments from WordPress.
Version 3.1 adds a completely rebuilt cleanup engine and administration screen. Instead of directly truncating comment database tables, comments are now permanently deleted through WordPress APIs so associated comment metadata and post comment counts are handled correctly.
Features include:
- Dashboard counts for approved, pending, spam, trash and product reviews.
- WooCommerce/product review protection enabled by default.
- Preview the number of matching comments before deletion.
- Preview sample comments before deletion.
- Filter by status: approved, pending, spam, trash, spam + trash or all.
- Filter by comment type: standard comments, pingbacks, trackbacks or product reviews.
- Delete comments older than a chosen number of days.
- Date-from and date-to filters.
- Filter by post ID or public post type.
- Filter by author email or IP address.
- Keyword filtering across comment content, author and email.
- Quick-clean presets for common cleanup jobs.
- Batched deletion with an on-screen progress indicator for larger sites.
- Strong confirmation when deleting every comment including product reviews.
- Automatic scheduled cleanup for old spam, trash and pending comments.
- Cleanup history without storing deleted comment content.
- Configurable permissions, batch size and review protection.
- WP-CLI commands for large sites.
- Multisite-aware activation and network WP-CLI cleanup.
Important: comment deletion is permanent. Always review the preview before confirming a cleanup and keep a current site/database backup.
Schermafbeeldingen




Installatie
- Upload the plugin files to the
/wp-content/plugins/comments-deletiondirectory, or install the plugin through the WordPress Plugins screen. - Activate the plugin through the Plugins screen in WordPress.
- Go to Settings > Comments Deletion.
- Choose a quick-clean preset or configure filters.
- Click Preview Cleanup before permanently deleting matching comments.
FAQ
-
Are WooCommerce product reviews protected?
-
Yes. Product reviews are excluded by default from manual and scheduled cleanup. You can deliberately turn that protection off when you specifically want to remove matching reviews.
-
Does the plugin remove comment metadata?
-
Yes. Version 3.1 uses WordPress comment deletion APIs rather than deleting only rows from the comments table.
-
Can I automatically clean old spam or trash?
-
Yes. The Automatic Cleanup tab can delete spam, trash and/or pending comments older than a chosen number of days on a daily or weekly schedule.
-
Does it work on large sites?
-
Manual deletion is performed in configurable batches and displays progress. WP-CLI commands are also available for large or multisite installations.
-
What WP-CLI commands are available?
-
Examples:
wp comments-deletion count --status=spam wp comments-deletion delete --status=spam --older-than=30 --yes wp comments-deletion delete --status=trash --network --yesBy default WP-CLI deletion protects product reviews. Pass
--include-reviewsonly when you intentionally want matching product reviews included.
Beoordelingen
Er zijn geen beoordelingen voor deze plugin.
Bijdragers & ontwikkelaars
“Comments Deletion” is open source software. De volgende personen hebben bijgedragen aan deze plugin.
BijdragersVertaal “Comments Deletion” in je eigen taal.
Interesse in ontwikkeling?
Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.
Changelog
3.1.1
- Reworked comment retrieval to use WP_Comment_Query instead of direct database reads.
- Resolved WordPress.org Plugin Check prepared-SQL and direct-query findings.
- Added direct nonce verification before request processing and sanitized nested request input.
- Added translator comments for placeholder strings.
- Moved plugin hooks into a prefixed class to satisfy global naming conventions.
- Wrapped uninstall cleanup in a prefixed function to avoid unprefixed globals.
- Updated Tested up to metadata to WordPress 7.1.
3.1.0
- Rebuilt the deletion engine to use WordPress comment deletion APIs.
- Added nonce and capability checks for cleanup actions.
- Added batched deletion with progress reporting.
- Added preview counts and sample comment previews.
- Added approved, pending, spam, trash and spam + trash status filters.
- Added standard comment, pingback, trackback and product review filters.
- Added filters for age, date range, post ID, post type, author email, author IP and keyword.
- Added product/WooCommerce review detection and default protection.
- Added quick-clean presets.
- Added scheduled automatic cleanup for old spam, trash and pending comments.
- Added cleanup history.
- Added configurable permissions, batch size and history retention.
- Added WP-CLI support including multisite network operations.
- Added multisite-aware activation/deactivation handling.
- Modernised the Comments Deletion administration screen.
- Corrected version metadata and minimum PHP/WordPress requirements.
3.0
- Tested up to WordPress 6.9.
- Changes to description and tags.
2.9
- Tested up to WordPress 6.9.
2.8
- Upgrade of admin panel.
2.7
- Tested up to WordPress 6.8.
2.6
- Tested up to WordPress 6.7.1.
- Upgrade of admin panel.
2.5
- Tested up to WordPress 6.5.2.
- Upgrade of admin panel.
2.4
- Tested up to WordPress 6.2.
2.3
- Tested up to WordPress 6.1.1.
2.2
- Testing up to WordPress 5.8.
- Upgrade of admin panel.
- Change to WordPress repository icon.
1.0
- Initial release.
