9 lines
377 B
PHP
9 lines
377 B
PHP
<?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');
|