/** * Loads before all else */ public static function admin_init() { ShareaholicUtilities::check_for_other_plugin(); // workaround: http://codex.wordpress.org/Function_Reference/register_activation_hook if (is_admin() && get_option('Activated_Plugin_Shareaholic') == 'shareaholic') { delete_option('Activated_Plugin_Shareaholic'); /* do stuff once right after activation */ if (has_action('wp_ajax_nopriv_shareaholic_share_counts_api') && has_action('wp_ajax_shareaholic_share_counts_api')) { ShareaholicUtilities::share_counts_api_connectivity_check(); } } }