wptag/uninstall.php
feibisi 6d56c60b26 Refactor plugin structure and remove legacy admin code
Removed old admin controllers, interfaces, AJAX handlers, and partials. Introduced new classes in the includes directory for admin, config, frontend, loader, output manager, and validator. Updated asset files and main plugin entry point to use the new structure. Cleaned up obsolete files and improved overall maintainability.
2025-07-16 03:48:47 +08:00

16 lines
No EOL
346 B
PHP

<?php
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
exit;
}
delete_option( 'universal_tracking_codes_settings' );
if ( is_multisite() ) {
$sites = get_sites();
foreach ( $sites as $site ) {
switch_to_blog( $site->blog_id );
delete_option( 'universal_tracking_codes_settings' );
restore_current_blog();
}
}