Modifies the Empty Spam action in WordPress to process the spam deletion in batches instead of all at once.
Modifies the Empty Spam action in WordPress to process the spam deletion in batches, allowing you to delete thousands or even hundreds of thousands of spam comments at once without killing your server.
Have you found a bug or have a suggestion or improvement you’d like to submit? This plugin is available on Github and pull requests are welcome!
Yes, there are two ways to do it.
You can modify the number via a filter, like this:
<?php
function pw_bcsd_per_batch( $per_batch ) {
$per_batch = 50; return $per_batch;
}
add_filter( ‘pw_bcpd_comments_per_batch’, ‘pw_bcsd_per_batch’ );
You can modify it by adding a constant to your wp-config.php
file:
define( ‘PW_BCPD_PER_BATCH’, 50 );