PluginProbe
Import Users & Customers with Meta | WP Ultimate CSV Importer Add-on / 1.0
Import Users & Customers with Meta | WP Ultimate CSV Importer Add-on v1.0
2.0 1.7.1 1.2.9 1.3 1.4 1.4.1 1.4.2 1.4.3 1.5 1.6 1.7 trunk 1.0 1.1 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8
import-users / uninstall.php

uninstall.php in Import Users & Customers with Meta | WP Ultimate CSV Importer Add-on 1.0, at uninstall.php

84 lines 3.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*******************************************************************************
3 * Import Users is a Tool for importing CSV for the Wordpress
4 * plugin developed by Smackcoders. Copyright (C) 2017 Smackcoders.
5 *
6 * Import Users is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Affero General Public License version 3
8 * as published by the Free Software Foundation with the addition of the
9 * following permission added to Section 15 as permitted in Section 7(a): FOR
10 * ANY PART OF THE COVERED WORK IN WHICH THE COPYRIGHT IS OWNED BY Import Users,
11 Import Users DISCLAIMS THE WARRANTY OF NON
12 * INFRINGEMENT OF THIRD PARTY RIGHTS.
13 *
14 * Import Users is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
17 * License for more details.
18 *
19 * You should have received a copy of the GNU Affero General Public License
20 * along with this program; if not, see http://www.gnu.org/licenses or write
21 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 * Boston, MA 02110-1301 USA.
23 *
24 * You can contact Smackcoders at email address info@smackcoders.com.
25 *
26 * The interactive user interfaces in original and modified versions
27 * of this program must display Appropriate Legal Notices, as required under
28 * Section 5 of the GNU Affero General Public License version 3.
29 *
30 * In accordance with Section 7(b) of the GNU Affero General Public License
31 * version 3, these Appropriate Legal Notices must retain the display of the
32 * Import Users copyright notice. If the display of the logo is
33 * not reasonably feasible for technical reasons, the Appropriate Legal
34 * Notices must display the words
35 * "Copyright Smackcoders. 2017. All rights reserved".
36 ********************************************************************************/
37 if ( ! defined( 'ABSPATH' ) )
38 exit; // Exit if accessed directly
39
40 class User_SmackUCIUnInstall {
41 /**
42 * UnInstall UCI Pro.
43 */
44 public static function uninstall() {
45 global $wpdb;
46
47 $wpdb->hide_errors();
48
49 require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
50 // Roles + caps.
51 #include_once ( 'includes/class-uci-install.php' );
52 User_SmackUCIInstall::remove_options();
53 $ucisettings = get_option('USER_SM_UCI_pro_settings');
54 $droptable = isset($ucisettings['drop_table']) ? $ucisettings['drop_table'] : '';
55 if(!empty($droptable) && $droptable == 'on'){
56 #$tables[] = 'drop table smack_csv_dashboard';
57 $tables[] = 'drop table smack_csv_manager';
58 $tables[] = 'drop table smack_field_types';
59 $tables[] = 'drop table smackcsv_status_log';
60 $tables[] = 'drop table wp_ultimate_csv_importer_acf_fields';
61 $tables[] = 'drop table wp_ultimate_csv_importer_eventkey_manager';
62 $tables[] = 'drop table wp_ultimate_csv_importer_exclusion_lists';
63 $tables[] = 'drop table wp_ultimate_csv_importer_external_file_schedules';
64 $tables[] = 'drop table wp_ultimate_csv_importer_filemanager';
65 $tables[] = 'drop table wp_ultimate_csv_importer_ftp_schedules';
66 $tables[] = 'drop table user_wp_ultimate_csv_importer_log_values';
67 $tables[] = 'drop table user_wp_ultimate_csv_importer_manageshortcodes';
68 $tables[] = 'drop table wp_ultimate_csv_importer_mappingtemplate';
69 $tables[] = 'drop table wp_ultimate_csv_importer_multisite_details';
70 $tables[] = 'drop table wp_ultimate_csv_importer_scheduled_import';
71 $tables[] = 'drop table user_wp_ultimate_csv_importer_shortcodes_statusrel';
72 $tables[] = 'drop table wp_ultimate_csv_importer_uploaded_file_schedules';
73 $tables[] = 'drop table User_SmackUCI_manage_records';
74 $tables[] = 'drop table User_SmackUCI_event_informations';
75 $tables[] = 'drop table User_SmackUCI_events';
76 $tables[] = 'drop table User_SmackUCI_history';
77
78 foreach($tables as $table) {
79 $wpdb->query($table, array());
80 }
81 }
82 }
83 }
84