• Resolved yesbutmaybeno

    (@yesbutmaybeno)


    To negate a lot of API calls, Akismet should have some simple toggles to not scan certain types of incoming comments, one of which could be “trusted users”, aka, logged in users.

    Is this doable?

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

    (@cfinke)

    We’ll keep it in mind as an official feature, but in the meantime, you could enable this behavior by adding a plugin like this:

    <?php
    
    add_action( 'init', function () {
      if ( is_user_logged_in() ) {
        remove_action( 'preprocess_comment', array( 'Akismet', 'auto_check_comment' ), 1 ); 
      }
    }, 99 );

    This worked on my site when I saved it as wp-content/mu-plugins/akismet-no-logged-in-check.php, but you’ll want to test and confirm that it works for you before deploying it.

Viewing 1 replies (of 1 total)
  • The topic ‘Bypass logged in users’ is closed to new replies.