Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: akismet_spam_check_warning_link_text

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
811                'code' => (int) get_option( 'akismet_alert_code' ),
812                'msg'  => get_option( 'akismet_alert_msg' )
813           ) );
814      }
815
816      public static function display_spam_check_warning() {
817           Akismet::fix_scheduled_recheck();
818
819           if ( wp_next_scheduled('akismet_schedule_cron_recheck') > time() && self::get_number_spam_waiting() > 0 ) {
820                $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() ) ) );
821                Akismet::view( 'notice', array( 'type' => 'spam-check', 'link_text' => $link_text ) );
822           }
823      }
824
825      public static function display_api_key_warning() {
826           Akismet::view( 'notice', array( 'type' => 'plugin' ) );
827      }
828
829      public static function display_page() {