| Server IP : 172.67.201.108 / Your IP : 216.73.217.73 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.7 System : Linux ip-172-31-69-123.ec2.internal 6.1.177-224.371.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 27 20:28:29 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/newmandy/wp-content/plugins/youtube-embed-plus/ |
Upload File : |
<?php
// if uninstall.php is not called by WordPress, die
if (!defined('WP_UNINSTALL_PLUGIN'))
{
die;
}
// if the option to do this is checked
$all_yt_options = get_option('youtubeprefs_alloptions');
if (!empty($all_yt_options['uninstall_data']))
{
global $wpdb;
// delete main options
delete_option('youtubeprefs_alloptions');
// delete backup options
$backup_plugin_options = $wpdb->get_results("SELECT option_name FROM $wpdb->options WHERE option_name LIKE 'youtubeprefs\_alloptions\_backup\_%'");
foreach ($backup_plugin_options as $option)
{
delete_option($option->option_name);
}
// delete vi data
$vi_table_name = $wpdb->prefix . 'vi_consent_logs';
$wpdb->query("DROP TABLE IF EXISTS $vi_table_name");
}