• Resolved nikdow

    (@nikdow)


    I don’t need Akismet to check comments etc, but I do need it to check the jetpack form on this site.

    If this is not possible, I will convert the jetpack form to contact-form-7 and discontinue Akismet altogether.

    The page I need help with: [log in to see the link]

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

    (@cfinke)

    You could add a file like this in mu-plugins:

    
    add_action( 'init', function () {
        remove_filter( 'preprocess_comment', array( 'Akismet', 'auto_check_comment' ), 1 );
        remove_action( 'comment_form_after',  array( 'Akismet',  'display_comment_form_privacy_notice' ) );
    }, 99 );
    

    This should disable Akismet for comments but leave it in place for Jetpack. I haven’t tested it, but if you’re interested in a method like this, I can confirm for you whether this would work.

    Thread Starter nikdow

    (@nikdow)

    Brilliant thank you.
    I’ve added that to the site’s customisation plugin and will monitor Akismet to check the numbers, there doesn’t seem to be any direct way to know if Akismet was called, but if no comments are being checked I should see a change to the numbers fairly quickly.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘is it possible to restrict akismet to only jetpack forms?’ is closed to new replies.