Add initial WPTag admin and core plugin files
Introduce the main admin controllers, AJAX handlers, UI partials, and core classes for the WPTag plugin. This includes admin interface components, dashboard, settings, snippet management, asset files, and localization support. These files establish the foundation for managing code snippets, templates, and plugin settings within the WordPress admin.
2025-07-16 03:44:42 +08:00
|
|
|
<?php
|
|
|
|
|
2025-07-16 03:48:47 +08:00
|
|
|
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
|
Add initial WPTag admin and core plugin files
Introduce the main admin controllers, AJAX handlers, UI partials, and core classes for the WPTag plugin. This includes admin interface components, dashboard, settings, snippet management, asset files, and localization support. These files establish the foundation for managing code snippets, templates, and plugin settings within the WordPress admin.
2025-07-16 03:44:42 +08:00
|
|
|
exit;
|
|
|
|
}
|
|
|
|
|
2025-07-16 03:48:47 +08:00
|
|
|
delete_option( 'universal_tracking_codes_settings' );
|
Add initial WPTag admin and core plugin files
Introduce the main admin controllers, AJAX handlers, UI partials, and core classes for the WPTag plugin. This includes admin interface components, dashboard, settings, snippet management, asset files, and localization support. These files establish the foundation for managing code snippets, templates, and plugin settings within the WordPress admin.
2025-07-16 03:44:42 +08:00
|
|
|
|
2025-07-16 03:48:47 +08:00
|
|
|
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();
|
|
|
|
}
|
|
|
|
}
|