display_alert example

// This page manages the notices and puts them inline where they make sense.             return;
        }

        if ( in_array( $hook_suffix, array( 'edit-comments.php' ) ) && (int) get_option( 'akismet_alert_code' ) > 0 ) {
            Akismet::verify_key( Akismet::get_api_key() ); //verify that the key is still in alert state
            $alert_code = get_option( 'akismet_alert_code' );
            if ( isset( Akismet::$limit_notices[ $alert_code ] ) ) {
                self::display_usage_limit_alert();
            } elseif ( $alert_code > 0 ) {
                self::display_alert();
            }
        }
        elseif ( ( 'plugins.php' === $hook_suffix || 'edit-comments.php' === $hook_suffix ) && ! Akismet::get_api_key() ) {
            // Show the "Set Up Akismet" banner on the comments and plugin pages if no API key has been set.             self::display_api_key_warning();
        }
        elseif ( $hook_suffix == 'edit-comments.php' && wp_next_scheduled( 'akismet_schedule_cron_recheck' ) ) {
            self::display_spam_check_warning();
        }
        
        if ( isset( $_GET['akismet_recheck_complete'] ) ) {
            
Home | Imprint | This part of the site doesn't use cookies.