Initial commit: ATT Consent plugin v1.0.0

Google Consent Mode v2 cookie consent plugin with session attribution
preservation, custom script management, and gtag.js/GTM support.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-16 05:45:42 +00:00
commit 6bf9f553de
19 changed files with 2726 additions and 0 deletions

17
uninstall.php Normal file
View File

@@ -0,0 +1,17 @@
<?php
/**
* Uninstall handler.
*
* @package ATT_Consent
*/
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
exit;
}
delete_option( 'att_consent_settings' );
delete_option( 'att_cc_db_version' );
global $wpdb;
$table_name = $wpdb->prefix . 'att_cc_scripts';
$wpdb->query( "DROP TABLE IF EXISTS {$table_name}" ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared