akismet_display_cron_disabled_notice

akismet_display_cron_disabled_notice

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('akismet_display_cron_disabled_notice') is found 1 times:

  • /wp-content/plugins/akismet/class.akismet-admin.php line 1093
    1089
    1090
    1091
    1092
    1093
    1094
    1095
    1096
    1097
    1098
    1099
    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',