Automatically empty my spam comments
-
Hello π
I want WordPress to automatically empty my spam comments after 1 day. I can see that Akismet can automatically do it after 30 days – but I will like to have converted to 1 day.
I have found this piece of code:
if ( $post->post_type == ‘post’ && $diff > 30 && get_option( ‘akismet_discard_month’ ) == ‘true’ && empty($comment[‘user_ID’]) ) {
Should I just change 30 to 1?
Thanks in advance.
- The topic ‘Automatically empty my spam comments’ is closed to new replies.