summaryrefslogtreecommitdiffstats
path: root/uninstall.php
diff options
context:
space:
mode:
authordanix <danix@danix.xyz>2018-07-04 17:44:08 +0200
committerdanix <danix@danix.xyz>2018-07-04 17:44:08 +0200
commitb96bc7586a5d69d408041a66d40a483f837e5e39 (patch)
tree3fc5aff4ffd0ebd4dc84e6eb3a06ede55ca19d1a /uninstall.php
downloaddanixland-contact-form-b96bc7586a5d69d408041a66d40a483f837e5e39.tar.gz
danixland-contact-form-b96bc7586a5d69d408041a66d40a483f837e5e39.zip
initial commit
Diffstat (limited to 'uninstall.php')
-rw-r--r--uninstall.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/uninstall.php b/uninstall.php
new file mode 100644
index 0000000..a01d2bf
--- /dev/null
+++ b/uninstall.php
@@ -0,0 +1,10 @@
+<?php
+//if uninstall not called from WordPress exit
+if ( !defined( 'WP_UNINSTALL_PLUGIN' ) )
+ exit();
+
+$options = 'dnxcf_options';
+
+delete_option( $options );
+
+?> \ No newline at end of file