• 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::display_spam_check_warning() –

You appear to be a bot. Output may be restricted

Description

Usage

Akismet_Admin::display_spam_check_warning();

Parameters

Returns

void

Source

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

1 to 16 of 16
  public static function display_spam_check_warning() {
    Akismet::fix_scheduled_recheck();

    if ( wp_next_scheduled('akismet_schedule_cron_recheck') > time() && self::are_any_comments_waiting_to_be_checked() ) {
      /*
			 * The 'akismet_display_cron_disabled_notice' filter can be used to control whether the WP-Cron disabled notice is displayed.
			 */
      if ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON && apply_filters( 'akismet_display_cron_disabled_notice', true ) ) {
        Akismet::view( 'notice', array( 'type' => 'spam-check-cron-disabled' ) );
      } else {
        /* translators: The Akismet configuration page URL. */
        $link_text = apply_filters( 'akismet_spam_check_warning_link_text', sprintf( __( 'Please check your <a href="%s">Akismet configuration</a> and contact your web host if problems persist.', 'akismet' ), esc_url( self::get_page_url() ) ) );
        Akismet::view( 'notice', array( 'type' => 'spam-check', 'link_text' => $link_text ) );
      }
    }
  }
 

 View on GitHub View on Trac

Published: 19th December 2019 | Last updated: 27th July 2022

Primary Sidebar

Information

Function name: Akismet_Admin::display_spam_check_warning
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,C,D,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