PluginProbe ʕ •ᴥ•ʔ
WPS Hide Login / 1.9.16.4
WPS Hide Login v1.9.16.4
trunk 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.2 1.2.1 1.2.2 1.2.3 1.2.3.1 1.2.4 1.2.5 1.2.5.1 1.2.6 1.2.6.1 1.2.7 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.4.1 1.3.4.2 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.5 1.5.1 1.5.2 1.5.2.1 1.5.2.2 1.5.3 1.5.4 1.5.4.1 1.5.4.2 1.5.5 1.5.6 1.5.7 1.6 1.6.1 1.7 1.8 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.9 1.9.1 1.9.10 1.9.11 1.9.12 1.9.13 1.9.13.1 1.9.13.2 1.9.15 1.9.15.1 1.9.15.2 1.9.16 1.9.16.1 1.9.16.2 1.9.16.3 1.9.16.4 1.9.16.5 1.9.16.6 1.9.16.7 1.9.17 1.9.17.1 1.9.17.2 1.9.18 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9
wps-hide-login / uninstall.php
wps-hide-login Last commit date
assets 1 year ago classes 1 year ago languages 1 year ago vendor 1 year ago autoload.php 1 year ago composer.json 1 year ago composer.lock 1 year ago readme.txt 1 year ago uninstall.php 1 year ago wps-hide-login.php 1 year ago
uninstall.php
50 lines
1 <?php
2 /**
3 * Fired when the plugin is uninstalled.
4 *
5 * @package WPS Hide Login
6 * @author Remy Perona <remperona@gmail.com>
7 * @license GPL-2.0+
8 * @link http://remyperona.fr
9 * @copyright 2015 Remy Perona
10 */
11
12 // If uninstall not called from WordPress, then exit
13 if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
14 exit;
15 }
16
17 global $wpdb;
18
19 if ( is_multisite() ) {
20
21 $blogs = $wpdb->get_results( "SELECT blog_id FROM {$wpdb->blogs}", ARRAY_A );
22 delete_site_option( 'whl_page' );
23 delete_site_option( 'whl_redirect_admin' );
24
25 flush_rewrite_rules();
26
27 if ( $blogs ) {
28
29 foreach ( $blogs as $blog ) {
30 switch_to_blog( $blog['blog_id'] );
31 delete_option( 'whl_page' );
32 delete_option( 'whl_redirect_admin' );
33
34 flush_rewrite_rules();
35
36 //info: optimize table
37 $GLOBALS['wpdb']->query( "OPTIMIZE TABLE `" . $GLOBALS['wpdb']->prefix . "options`" );
38 restore_current_blog();
39 }
40 }
41
42 } else {
43 delete_option( 'whl_page' );
44 delete_option( 'whl_redirect_admin' );
45
46 flush_rewrite_rules();
47
48 //info: optimize table
49 $GLOBALS['wpdb']->query( "OPTIMIZE TABLE `" . $GLOBALS['wpdb']->prefix . "options`" );
50 }