public static function init_hooks()
 {
     // The standalone stats page was removed in 3.0 for an all-in-one config and stats page.
     // Redirect any links that might have been bookmarked or in browser history.
     if (isset($_GET['page']) && 'akismet-stats-display' == $_GET['page']) {
         wp_safe_redirect(esc_url_raw(self::get_page_url('stats')), 301);
         die;
     }
     self::$initiated = true;
     add_action('admin_init', array('Akismet_Admin', 'admin_init'));
     add_action('admin_menu', array('Akismet_Admin', 'admin_menu'), 5);
     # Priority 5, so it's called before Jetpack's admin_menu.
     add_action('admin_notices', array('Akismet_Admin', 'display_notice'));
     add_action('admin_enqueue_scripts', array('Akismet_Admin', 'load_resources'));
     add_action('activity_box_end', array('Akismet_Admin', 'dashboard_stats'));
     add_action('rightnow_end', array('Akismet_Admin', 'rightnow_stats'));
     add_action('manage_comments_nav', array('Akismet_Admin', 'check_for_spam_button'));
     add_action('transition_comment_status', array('Akismet_Admin', 'transition_comment_status'), 10, 3);
     add_action('admin_action_akismet_recheck_queue', array('Akismet_Admin', 'recheck_queue'));
     add_action('wp_ajax_akismet_recheck_queue', array('Akismet_Admin', 'recheck_queue'));
     add_action('wp_ajax_comment_author_deurl', array('Akismet_Admin', 'remove_comment_author_url'));
     add_action('wp_ajax_comment_author_reurl', array('Akismet_Admin', 'add_comment_author_url'));
     add_filter('plugin_action_links', array('Akismet_Admin', 'plugin_action_links'), 10, 2);
     add_filter('comment_row_actions', array('Akismet_Admin', 'comment_row_action'), 10, 2);
     add_filter('comment_text', array('Akismet_Admin', 'text_add_link_class'));
     add_filter('plugin_action_links_' . plugin_basename(plugin_dir_path(__FILE__) . 'akismet.php'), array('Akismet_Admin', 'admin_plugin_settings_link'));
 }