| Server IP : 172.67.166.150 / Your IP : 216.73.217.79 Web Server : LiteSpeed System : Linux pbn-16.isgood.host 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 User : gamenohushop ( 1160) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/local/lsws/gamenohu.shop/html/wp-content/plugins/wps-hide-login/ |
Upload File : |
<?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`" );
}