PluginProbe ʕ •ᴥ•ʔ
LightStart – Maintenance Mode, Coming Soon and Landing Page Builder / 2.0.6
LightStart – Maintenance Mode, Coming Soon and Landing Page Builder v2.0.6
2.6.22 trunk 1.3 1.5.3 1.6.10 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.8.0 1.8.1 1.8.10 1.8.11 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 2.1.2 2.2 2.2.2 2.2.3 2.2.4 2.3.0 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.6.0 2.6.1 2.6.10 2.6.11 2.6.12 2.6.13 2.6.14 2.6.15 2.6.16 2.6.17 2.6.18 2.6.19 2.6.2 2.6.20 2.6.21 2.6.3 2.6.4 2.6.5 2.6.6 2.6.7 2.6.8 2.6.9
wp-maintenance-mode / uninstall.php
wp-maintenance-mode Last commit date
assets 9 years ago includes 9 years ago languages 9 years ago views 9 years ago index.php 9 years ago readme.md 9 years ago readme.txt 9 years ago uninstall.php 9 years ago wp-maintenance-mode.php 9 years ago
uninstall.php
36 lines
1 <?php
2
3 // If uninstall not called from WordPress, then exit
4 if (!defined('WP_UNINSTALL_PLUGIN')) {
5 exit();
6 }
7
8 /**
9 * Uninstall operations
10 */
11 function single_uninstall() {
12 // delete subscribers table
13 $GLOBALS['wpdb']->query("DROP TABLE IF EXISTS {$GLOBALS['wpdb']->prefix}wpmm_subscribers");
14
15 // delete options
16 delete_option('wpmm_settings');
17 delete_option('wpmm_notice');
18 delete_option('wpmm_version');
19 }
20
21 // Let's do it!
22 if (is_multisite()) {
23 single_uninstall();
24
25 // delete data foreach blog
26 $blogs_list = $GLOBALS['wpdb']->get_results("SELECT blog_id FROM {$GLOBALS['wpdb']->blogs}", ARRAY_A);
27 if (!empty($blogs_list)) {
28 foreach ($blogs_list as $blog) {
29 switch_to_blog($blog['blog_id']);
30 single_uninstall();
31 restore_current_blog();
32 }
33 }
34 } else {
35 single_uninstall();
36 }