Ejemplo n.º 1
0
 /**
  * This function fires after the plugin has been activated.
  */
 public function after_activation()
 {
     $this->terms_of_service();
     ShareaholicUtilities::log_event("Activate");
     // workaround: http://codex.wordpress.org/Function_Reference/register_activation_hook
     add_option('Activated_Plugin_Shareaholic', 'shareaholic');
     if (ShareaholicUtilities::has_accepted_terms_of_service() && ShareaholicUtilities::get_option('api_key') != NULL) {
         ShareaholicUtilities::notify_content_manager_sitemap();
         ShareaholicUtilities::notify_content_manager_singledomain();
     }
     if (!ShareaholicUtilities::get_version()) {
         ShareaholicUtilities::log_event("Install_Fresh");
     }
     // Activate the Shareaholic Cron Job for new users
     ShareaholicCron::activate();
 }