display_spam_check_warning example

if ( isset( Akismet::$limit_notices[ $alert_code ] ) ) {
                self::display_usage_limit_alert();
            } elseif ( $alert_code > 0 ) {
                self::display_alert();
            }
        }
        elseif ( ( 'plugins.php' === $hook_suffix || 'edit-comments.php' === $hook_suffix ) && ! Akismet::get_api_key() ) {
            // Show the "Set Up Akismet" banner on the comments and plugin pages if no API key has been set.             self::display_api_key_warning();
        }
        elseif ( $hook_suffix == 'edit-comments.php' && wp_next_scheduled( 'akismet_schedule_cron_recheck' ) ) {
            self::display_spam_check_warning();
        }
        
        if ( isset( $_GET['akismet_recheck_complete'] ) ) {
            $recheck_count = (int) $_GET['recheck_count'];
            $spam_count = (int) $_GET['spam_count'];
            
            if ( $recheck_count === 0 ) {
                $message = __( 'There were no comments to check. Akismet will only check comments awaiting moderation.', 'akismet' );
            }
            else {
                $message = sprintf( _n( 'Akismet checked %s comment.', 'Akismet checked %s comments.', $recheck_count, 'akismet' )number_format( $recheck_count ) );
                
Home | Imprint | This part of the site doesn't use cookies.