• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress a2z

WordPress a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Themes
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / Akismet_Admin::rightnow_stats() –

You appear to be a bot. Output may be restricted

Description

Usage

Akismet_Admin::rightnow_stats();

Parameters

Returns

void

Source

File name: akismet/class.akismet-admin.php
Lines:

1 to 26 of 26
  public static function rightnow_stats() {
    if ( $count = get_option('akismet_spam_count') ) {
      $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";
  }
 

 View on GitHub View on Trac

Published: 19th December 2019 | Last updated: 19th December 2019

Primary Sidebar

Information

Function name: Akismet_Admin::rightnow_stats
Class ref: Akismet_Admin
Plugin ref: Akismet
Version: 5.0.1
Sourcefile: class.akismet-admin.php
File ref: class.akismet-admin.php
Deprecated?: No
API Letters: A,R,S

Footer

WordPress a2z
WordPress a2z
WordPress Dynamic API Reference
WordPress 6.1.1. PHP: 8.0.27
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  wp-a2z.org
© Copyright WordPress a2z 2014-2023. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites