| 开发者 |
ceowizzyweb
ceodigitecholic shivampatel ishahinakhter |
|---|---|
| 更新时间 | 2026年11月5日 03:15 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
wp wwssc status|preview|run|cancel for hosts and automation/wp-content/plugins/smart-spam-cleaner directory, or install the plugin through the WordPress plugins screen directly.Open Delete Spams → How to Use in wp-admin. The same topics are available from the Help tab on the cleanup, settings, and guide screens.
Yes. On Spam Filter Settings, enable Scheduled Cleanup, choose weekly or monthly, pick users/posts/comments, and save. Scheduled dry run is on by default. A scheduled tick is skipped if a cleanup is already running. WordPress cron needs traffic (or a real server cron hitting wp-cron.php).
Yes: wp wwssc status, wp wwssc preview --users|--posts|--comments, wp wwssc run [--dry-run] [--users] [--posts] [--comments], and wp wwssc cancel.
Yes, the plugin includes several safety measures:
The duration depends on:
Yes. While a cleanup is running, use Cancel cleanup on the main plugin screen. The current batch is allowed to finish. Scheduled follow-up batches are cleared, the saved cursor is discarded, and the dry-run flag is cleared. Users or posts already deleted in earlier batches are not restored. You do not need to deactivate the plugin.
Check Dry run on the cleanup form before starting. The plugin walks the same batches and writes "would delete" or "would trash" lines to the log, including the match reason. It does not call user or post deletion. The flag lasts only for that run.
On Spam Filter Settings, add one email per line and one user ID per line. Those accounts are never deleted, even when they match keyword or domain filters. User preview does not count them as matches. The list is saved with the other filter settings and is removed on uninstall.
The plugin uses batch processing with progress tracking. If a batch stops without cancel, open the plugin screen again and it can continue from the saved cursor. Cancel cleanup clears that cursor, so the next start begins a new scan.
Yes! You can add, remove, or modify keywords through the Spam Filter Settings page. The interface allows you to dynamically manage your keyword lists.
The plugin is designed to minimize performance impact:
All cleanup activities are logged to: wp-content/uploads/smart-spam-cleaner/smart-spam-cleaner.log
The log file contains:
Yes! You can customize filters using WordPress filters: ` add_filter('wwssc_user_filters', function($filters) { $filters['keywords'][] = 'custom_keyword1'; $filters['keywords'][] = 'custom_keyword2'; $filters['domains']['include'][] = 'spamdomain.com'; $filters['domains']['exclude'][] = 'trusted.com'; $filters['condition'] = 'AND'; return $filters; }); add_filter('wwssc_post_filters', function($filters) { $filters['keywords'][] = 'custom_keyword1'; $filters['keywords'][] = 'custom_keyword2'; return $filters; }); `
Yes! You can configure batch size in the settings page (range: 50-2000).
You can also define a custom batch size in your wp-config.php file:
define('WWSSC_BATCH_SIZE', 1000);
wp wwssc status, wp wwssc preview, wp wwssc run, and wp wwssc cancel.includes/wwssc-filters.php with wwssc_user_matches_filters() and wwssc_post_matches_filters().wwssc_user_filters and wwssc_post_filters apply_filters hooks wired in batch and preview.