Skip to:
Content
Pages
Categories
Search
Top
Bottom

Turn off Akismet check for logged in users

  • @injua

    Participant

    bbPress 2.1-r3920.

    Really think there should be a role setting or a simple off-on setting to turn off akismet checking for logged in users.

    With the current governmental paranoid craziness regarding online privacy. More and more users are turning to proxies or VPN with shared IP. This leads to a lot of ham being caught in the process.

    Hope to see it in the future.

    In the BBP_Akismet class in bbb-extend-akismet.php there are this function with a do_action call. Do anyone know a quick and simple way to turn it off from here with code in functions.php?

    // Spam
    if ( 'true' == $post_data['bbp_akismet_result'] ) {
    
    // Let plugins do their thing
    do_action( 'bbp_akismet_spam_caught' );
    
    // This is spam
    $post_data['post_status'] = bbp_get_spam_status_id();
    
    // We don't want your spam tags here
    add_filter( 'bbp_new_reply_pre_set_terms', array( $this, 'filter_post_terms' ), 1, 3 );
    
    // @todo Spam counter?
    }
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • @r-a-y

    Participant

    Akismet still hates me 🙁

    @johnjamesjacoby

    Keymaster

    I unspammed your post r-a-y.

    @iamzippy

    Member

    injua:

    [as of bbp 2.1] the hookable test for Akismet — bbp_is_akismet_active()— is in bbp-core-options.php @341.

    Have you tried attaching a filter to force a FALSE return when your user is signed in?

    It follows best practice so I don’t see why it wouldn’t work?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar