'code' =>
(int) get_option( 'akismet_alert_code'
),
'msg' =>
get_option( 'akismet_alert_msg'
),
'api_calls' =>
get_option( 'akismet_alert_api_calls'
),
'usage_limit' =>
get_option( 'akismet_alert_usage_limit'
),
'upgrade_plan' =>
get_option( 'akismet_alert_upgrade_plan'
),
'upgrade_url' =>
get_option( 'akismet_alert_upgrade_url'
),
'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'
) );
}