WordPress.org

Ready to get started?Download WordPress

Forums

Automatically empty my spam comments (1 post)

  1. Jonathan
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.