| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/INVOICE/wp-content/plugins/kaya-qr-code-generator/ |
Upload File : |
<?php
/**
* Delete data and table during plugin uninstall.
*/
if (!defined('WP_UNINSTALL_PLUGIN'))
{
die();
}
// delete main settings an notices options
delete_option('wpkqcg_qrcode_generator');
delete_option('wpkqcg_kaya_qr_code_generator_admin_notices');
// delete multisite settings an notices options
if (is_multisite())
{
$subSites = get_sites();
foreach ($subSites as $i_site)
{
switch_to_blog($i_site->blog_id);
if (get_option('wpkqcg_qrcode_generator'))
{
delete_option('wpkqcg_qrcode_generator');
delete_option('wpkqcg_kaya_qr_code_generator_admin_notices');
}
restore_current_blog();
}
}