diff --git a/uninstall.php b/uninstall.php new file mode 100644 index 0000000..bad0e5a --- /dev/null +++ b/uninstall.php @@ -0,0 +1,8 @@ +query("DROP TABLE IF EXISTS {$wpdb->prefix}wmf_submissions"); +foreach(get_posts(array('post_type'=>'wmf-form','post_status'=>'any','numberposts'=>-1,'fields'=>'ids')) as $id) wp_delete_post($id,true); +delete_option('_wmf_service_credentials'); +delete_option('wmf_settings'); +delete_option('wmf_db_version');