本文整理汇总了PHP中Akismet_Admin::initiated方法的典型用法代码示例。如果您正苦于以下问题:PHP Akismet_Admin::initiated方法的具体用法?PHP Akismet_Admin::initiated怎么用?PHP Akismet_Admin::initiated使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Akismet_Admin
的用法示例。
在下文中一共展示了Akismet_Admin::initiated方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init_hooks
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'));
}