Skip to content

Commit

Permalink
Add uninstaller
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafauysal committed Mar 3, 2021
1 parent 756dd88 commit cf4aafd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions uninstall.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php
/**
* Uninstall Unagi
*
* @package Unagi
*/

// Exit if accessed directly.
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
exit;
}

global $wpdb;

// clean-up user meta
$wpdb->query( "DELETE FROM $wpdb->usermeta WHERE meta_key ='unagi_notices';" );

0 comments on commit cf4aafd

Please sign in to comment.