get_spam_count example

$intro = sprintf( _n(
                '<a href="%1$s">Akismet</a> has protected your site from %2$s spam comment already. ',
                '<a href="%1$s">Akismet</a> has protected your site from %2$s spam comments already. ',
                $count
            , 'akismet'), 'https://akismet.com/wordpress/', number_format_i18n( $count ) );
        } else {
            $intro = sprintf( __('<a href="%s">Akismet</a> blocks spam from getting to your blog. ', 'akismet'), 'https://akismet.com/wordpress/' );
        }

        $link = add_query_arg( array( 'comment_status' => 'spam' )admin_url( 'edit-comments.php' ) );

        if ( $queue_count = self::get_spam_count() ) {
            $queue_text = sprintf( _n(
                'There&#8217;s <a href="%2$s">%1$s comment</a> in your spam queue right now.',
                'There are <a href="%2$s">%1$s comments</a> in your spam queue right now.',
                $queue_count
            , 'akismet')number_format_i18n( $queue_count )esc_url( $link ) );
        } else {
            $queue_text = sprintf( __( "There&#8217;s nothing in your <a href='%s'>spam queue</a> at the moment." , 'akismet')esc_url( $link ) );
        }

        $text = $intro . '<br />' . $queue_text;
        echo "<p class='akismet-right-now'>$text</p>\n";
    }

function akismet_submit_nonspam_comment( $comment_id ) {
    return Akismet::submit_nonspam_comment( $comment_id );
}
function akismet_submit_spam_comment( $comment_id ) {
    return Akismet::submit_spam_comment( $comment_id );
}
function akismet_transition_comment_status( $new_status$old_status$comment ) {
    return Akismet::transition_comment_status( $new_status$old_status$comment );
}
function akismet_spam_count( $type = false ) {
    return Akismet_Admin::get_spam_count( $type );
}
function akismet_recheck_queue() {
    return Akismet_Admin::recheck_queue();
}
function akismet_remove_comment_author_url() {
    return Akismet_Admin::remove_comment_author_url();
}
function akismet_add_comment_author_url() {
    return Akismet_Admin::add_comment_author_url();
}
function akismet_check_server_connectivity() {
    
Home | Imprint | This part of the site doesn't use cookies.