/** * Uninstall plugin. */ public function Uninstall() { WSAL_DB_ActiveRecord::UninstallAll(); wp_clear_scheduled_hook('wsal_cleanup'); }
/** * Uninstall plugin. */ public function Uninstall() { if ($this->GetGlobalOption("delete-data") == 1) { WSAL_DB_ActiveRecord::UninstallAll(); $this->deleteAllOptions(); } wp_clear_scheduled_hook('wsal_cleanup'); }
/** * Uninstall plugin. */ public function Uninstall() { WSAL_DB_ActiveRecord::UninstallAll(); wp_unschedule_event(0, 'wsal_cleanup'); }