Skip to content

Commit

Permalink
remove db after uninstall the plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
bipoza committed Mar 21, 2023
1 parent 9d07b5d commit d1e5df2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions wp-uptime.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,11 @@ function wp_uptime_settings()
{
register_setting('wp_uptime_settings', 'wp_uptime_endpoint_path');
register_setting('wp_uptime_settings', 'wp_uptime_response_value');
}

register_uninstall_hook(__FILE__, 'wp_uptime_uninstall');
function wp_uptime_uninstall()
{
delete_option('wp_uptime_endpoint_path');
delete_option('wp_uptime_response_value');
}

0 comments on commit d1e5df2

Please sign in to comment.