- Created a base mail template - Adapt and improve document API to usage of catalogs and processors - Adapt eveai_sync to new authentication mechanism and usage of catalogs and processors
27 lines
801 B
PHP
27 lines
801 B
PHP
<?php
|
|
// If uninstall not called from WordPress, exit
|
|
if (!defined('WP_UNINSTALL_PLUGIN')) {
|
|
exit;
|
|
}
|
|
|
|
// Delete plugin options
|
|
delete_option('eveai_chat_settings');
|
|
delete_option('eveai_chat_encryption_key');
|
|
|
|
// Clean up any additional options or data that your plugin may have created
|
|
// For example, if you've created any custom tables, you might want to drop them here
|
|
|
|
// If using multisite, you might want to loop through all sites
|
|
if (is_multisite()) {
|
|
global $wpdb;
|
|
$blog_ids = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
|
|
foreach ($blog_ids as $blog_id) {
|
|
switch_to_blog($blog_id);
|
|
|
|
// Delete options for each site
|
|
delete_option('eveai_chat_settings');
|
|
delete_option('eveai_chat_encryption_key');
|
|
|
|
restore_current_blog();
|
|
}
|
|
} |