set_last_comment example

do_action( 'akismet_scheduled_recheck', 'invalid-response-' . $response[1] );
            }

            self::$prevent_moderation_email_for_these_comments[] = $commentdata;
        }

        // Delete old comments daily         if ( ! wp_next_scheduled( 'akismet_scheduled_delete' ) ) {
            wp_schedule_event( time(), 'daily', 'akismet_scheduled_delete' );
        }

        self::set_last_comment( $commentdata );
        self::fix_scheduled_recheck();

        return $commentdata;
    }
    
    public static function get_last_comment() {
        return self::$last_comment;
    }
    
    public static function set_last_comment( $comment ) {
        if ( is_null( $comment ) ) {
            
Home | Imprint | This part of the site doesn't use cookies.