WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 1084 | } |
| 1085 | |
| 1086 | public static function display_spam_check_warning() { |
| 1087 | Akismet::fix_scheduled_recheck(); |
| 1088 | |
| 1089 | if ( wp_next_scheduled( 'akismet_schedule_cron_recheck' ) > time() && self::are_any_comments_waiting_to_be_checked() ) { |
| 1090 | /* |
| 1091 | * The 'akismet_display_cron_disabled_notice' filter can be used to control whether the WP-Cron disabled notice is displayed. |
| 1092 | */ |
| 1093 | if ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON && apply_filters( 'akismet_display_cron_disabled_notice', true ) ) { |
| 1094 | Akismet::view( 'notice', array( 'type' => 'spam-check-cron-disabled' ) ); |
| 1095 | } else { |
| 1096 | /* translators: The Akismet configuration page URL. */ |
| 1097 | $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() ) ) ); |
| 1098 | Akismet::view( |
| 1099 | 'notice', |
| 1100 | array( |
| 1101 | 'type' => 'spam-check', |
| 1102 | 'link_text' => $link_text, |