Upload via Git Manager GUI
This commit is contained in:
8
uninstall.php
Normal file
8
uninstall.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
if(!defined('WP_UNINSTALL_PLUGIN')) exit;
|
||||
global $wpdb;
|
||||
$wpdb->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');
|
||||
Reference in New Issue
Block a user