PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
plugins
/
wps-hide-login
<?php /** * Fired when the plugin is uninstalled. * * @package WPS Hide Login * @license GPL-2.0+ */ // If uninstall not called from WordPress, then exit if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { exit; } global $wpdb; if ( is_multisite() ) { $blogs = $wpdb->get_results( "SELECT blog_id FROM {$wpdb->blogs}", ARRAY_A ); delete_site_option( 'whl_page' ); delete_site_option( 'whl_redirect_admin' ); flush_rewrite_rules(); if ( $blogs ) { foreach ( $blogs as $blog ) { switch_to_blog( $blog['blog_id'] ); delete_option( 'whl_page' ); delete_option( 'whl_redirect_admin' ); flush_rewrite_rules(); //info: optimize table $GLOBALS['wpdb']->query( "OPTIMIZE TABLE `" . $GLOBALS['wpdb']->prefix . "options`" ); restore_current_blog(); } } } else { delete_option( 'whl_page' ); delete_option( 'whl_redirect_admin' ); flush_rewrite_rules(); //info: optimize table $GLOBALS['wpdb']->query( "OPTIMIZE TABLE `" . $GLOBALS['wpdb']->prefix . "options`" ); }
[+]
vendor
[-] readme.txt
[edit]
[+]
assets
[-] composer.json
[edit]
[-] wps-hide-login.php
[edit]
[-] autoload.php
[edit]
[-] uninstall.php
[edit]
[+]
languages
[+]
..
[-] composer.lock
[edit]
[+]
classes