Bypass logged in users | WordPress.org

[ad_1]

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.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer