WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. gmpfree
    Member
    Posted 6 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
    Member
    Posted 6 years ago #

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

  3. Sergey Biryukov
    WordPress Dev
    Posted 6 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