diff --git a/aspire-update.php b/aspire-update.php index 05c24f5..973f198 100644 --- a/aspire-update.php +++ b/aspire-update.php @@ -46,3 +46,13 @@ function aspire_update() { new AspireUpdate\Controller(); } } + +register_activation_hook( __FILE__, 'aspire_update_activation_hook' ); +function aspire_update_activation_hook() { + register_uninstall_hook( __FILE__, 'aspire_update_uninstall_hook' ); +} + +function aspire_update_uninstall_hook() { + $admin_settings = AspireUpdate\Admin_Settings::get_instance(); + $admin_settings->delete_all_settings(); +} \ No newline at end of file