- Created a new eveai_chat plugin to support the new dynamic possibilities of the Specialists. Currently only supports standard Rag retrievers (i.e. no extra arguments).
This commit is contained in:
22
integrations/Wordpress/eveai-chat/uninstall.php
Normal file
22
integrations/Wordpress/eveai-chat/uninstall.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
// If uninstall not called from WordPress, exit
|
||||
if (!defined('WP_UNINSTALL_PLUGIN')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
// Delete plugin options
|
||||
delete_option('eveai_chat_settings');
|
||||
|
||||
// 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_option('eveai_chat_settings');
|
||||
restore_current_blog();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user