PluginProbe
GTM Kit – Google Tag Manager & GA4 integration / trunk
GTM Kit – Google Tag Manager & GA4 integration vtrunk
2.18.1 2.18.0 2.17.0 2.16.4 2.16.3 2.16.0 2.16.1 2.15.0 2.14.1 2.14.0 2.13.0 2.13.1 2.12.0 2.11.0 2.10.0 2.9.0 trunk 1.0 1.1 1.1.1 1.10 1.11 1.11.1 1.12 1.12.1 All 100 releases
gtm-kit / uninstall.php

uninstall.php in GTM Kit – Google Tag Manager & GA4 integration trunk, at uninstall.php

22 lines 525 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Uninstall all GTM Kit data.
4 *
5 * @package GTM Kit
6 */
7
8 // Exit if accessed directly.
9 if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
10 exit;
11 }
12
13 delete_option( 'gtmkit' );
14 delete_option( 'gtmkit_version' );
15 delete_option( 'gtmkit_initial_version' );
16 delete_option( 'gtmkit_activation_prevent_redirect' );
17 delete_option( 'gtmkit_support_sync' );
18 delete_option( 'gtmkit_snippet_scan' );
19
20 // Remove the per-user introductions seen-state across all users.
21 delete_metadata( 'user', 0, '_gtmkit_introductions', '', true );
22