Support » Plugin: Akismet Anti-Spam » Set Akismet to always allow comments from logged in users?

  • Resolved jfruhlinger

    (@jfruhlinger)


    Hello!Hello!

    I have a WP blog with a very lively comment section, including users who post long comments with multiple paragraphs and hyperlinks. A few months ago I finally upgraded WP to the point that Spam Karma 2 (RIP) no longer worked, so I switched over to Akismet. For whatever reason Akismet is more hostile to these kinds of long posts, and it doesn’t seem like there’s a way to whitelist specific IP addresses or emails. This means more time for me fishing comments out of the spam filter, and more occasions on which my most loyal users find themselves sent to the moderation queue.

    I also have a subcription service for some users via PaidMembershipPro. Subscribers have their own WordPress user (as opposed to non-subscribers, who can’t log in and just put their name/email/URL into a form on the site to comment). Some of these comments also get spamfiltered by Akismet. Since the number of subscribers are relatively few and they have to pay to subscribe, I am comfortable saying that any comment from a logged in user will never be spam. Is there any way to tell Akismet to always allow, or just not bother assessing, posts from logged in users?

    Right now I’m using the free version of Akismet. I’d be willing to pay for the $5/month version if that makes this possible, but as near as I can tell it doesn’t. Thanks in advance for any advice on anything I might be missing.

    Josh

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Christopher Finke

    (@cfinke)

    I don’t anticipate making this a core feature of Akismet, since on most sites, logged-in users can’t always be expected to be non-spammy. However, you could write a simple plugin that bypasses Akismet for logged-in users on your site. It would look like this:

    `
    <?php

    add_action( ‘init’, ‘skip_akismet_for_logged_in_commenters’, 99 );

    function skip_akismet_for_logged_in_commenters() {
    if ( is_user_logged_in() ) {
    remove_filter( ‘preprocess_comment’, array( ‘Akismet’, ‘auto_check_comment’ ), 1 );
    }
    }
    `

    I second this request.

    Plugin Support csonnek

    (@csonnek)

    Happiness Rocketeer 🚀

    @fakeologist:

    As Chris mentioned, it’s not something that we’re considering making a core feature of Akismet. However, you can use the code he provided to add that functionality to your site.

    Hope that helps!

    Just chiming in to say that I used the code provided above and it works great. Thanks guys!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Set Akismet to always allow comments from logged in users?’ is closed to new replies.