mirror of
https://github.com/WenPai-org/wptag.git
synced 2025-08-04 13:00:53 +08:00
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.
16 lines
No EOL
346 B
PHP
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();
|
|
}
|
|
} |