show message when comment is caught by akismet (3 posts)

  1. gmpfree
    Posted 8 years ago #

    I wonder is there a way to show commenter some friendly message when their post is caught by akismet ?

    usually in comments.php

    if ($comment->comment_approved == '0') { echo 'awaiting moderation' }

    but this only works for comment in moderation..
    i thought of adding

    $comment->comment_approved == 'spam'

    but comment just doesn't show up when caught by akismet, is there a way around this ? some of my readers try comment three times on a single post, without knowing they all end in akismet-bin.

  2. gmpfree
    Posted 8 years ago #

    did nobody else have this problem or am i posting it in the wrong forum ?

  3. Sergey Biryukov
    WordPress Dev
    Posted 8 years ago #

    Perhaps wp_get_comment_status($comment->comment_ID) == 'spam' will help.

Topic Closed

This topic has been closed to new replies.

About this Topic