summaryrefslogtreecommitdiffstats
path: root/uninstall.php
diff options
context:
space:
mode:
authordanix <danix@danix.xyz>2018-07-04 17:41:51 +0200
committerdanix <danix@danix.xyz>2018-07-04 17:41:51 +0200
commite8ea87943791cd08759880c3243316c8bd34983e (patch)
tree8b7eb0b5686ac02147f864eedf31ad6b9678d09f /uninstall.php
downloaddanixland-author-signature-e8ea87943791cd08759880c3243316c8bd34983e.tar.gz
danixland-author-signature-e8ea87943791cd08759880c3243316c8bd34983e.zip
initial commit
Diffstat (limited to 'uninstall.php')
-rw-r--r--uninstall.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/uninstall.php b/uninstall.php
new file mode 100644
index 0000000..dae27f9
--- /dev/null
+++ b/uninstall.php
@@ -0,0 +1,9 @@
+<?php
+//if uninstall not called from WordPress exit
+if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) )
+ exit();
+
+// delete our metadata for all users
+delete_metadata( 'user', 0, 'dnxasi_meta_signature', '', true );
+// delete options for our plugin from the options table
+delete_option( 'dnxasi_settings' );