PluginProbe ʕ •ᴥ•ʔ
WP-Sweep / trunk
WP-Sweep vtrunk
trunk 1.0.10 1.0.11 1.0.12 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9
wp-sweep / uninstall.php
wp-sweep Last commit date
inc 3 years ago js 9 years ago CLAUDE.md 1 month ago admin.php 7 years ago composer.json 6 years ago composer.lock 6 years ago index.php 7 years ago readme.txt 1 month ago uninstall.php 7 years ago wp-sweep.php 1 month ago
uninstall.php
35 lines
1 <?php
2 /**
3 * WP-Sweep uninstall.php
4 *
5 * @package wp-sweep
6 */
7
8 if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
9 exit;
10 }
11
12 if ( is_multisite() ) {
13 $ms_sites = get_sites();
14
15 if ( 0 < count( $ms_sites ) ) {
16 foreach ( $ms_sites as $ms_site ) {
17 switch_to_blog( $ms_site->blog_id );
18 plugin_uninstalled();
19 }
20 }
21
22 restore_current_blog();
23 } else {
24 plugin_uninstalled();
25 }
26
27 /**
28 * Delete plugin table when uninstalled
29 *
30 * @access public
31 * @return void
32 */
33 function plugin_uninstalled() {
34 }
35