Skip to content

Commit

Permalink
delete custom endpoint file on uninstall, closes #149
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyvankooten committed Jun 1, 2022
1 parent 0d9659c commit ea5c0b6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions uninstall.php
Expand Up @@ -20,3 +20,8 @@
{$wpdb->prefix}koko_analytics_referrer_stats,
{$wpdb->prefix}koko_analytics_referrer_urls"
);

// delete custom endpoint file
if (file_exists(ABSPATH . '/koko-analytics-collect.php')) {
unlink(ABSPATH . '/koko-analytics-collect.php');
}

0 comments on commit ea5c0b6

Please sign in to comment.