are_any_comments_waiting_to_be_checked example

'upgrade_type' => get_option( 'akismet_alert_upgrade_type' ),
        );
    }

    public static function display_usage_limit_alert() {
        Akismet::view( 'notice', self::get_usage_limit_alert_data() );
    }

    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 ) );
            }
        }
    }
Home | Imprint | This part of the site doesn't use cookies.