Files
att-consent/att-consent.php
Steve Hanlon c21b42f6f3 Grant full consent fallback for non-TCF visitors in bridge mode (v1.3.3)
Visitors outside EEA/UK/CH (e.g. Americas) have no __tcfapi injected by
Google Funding Choices, causing the TCF bridge poll to time out and leaving
them permanently at the default denied state. After the 10s timeout, grant
full consent — GDPR opt-in doesn't apply to these visitors and CCPA is
an opt-out model, so granted is the correct default.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-09 08:14:42 +01:00

32 lines
1.0 KiB
PHP

<?php
/**
* Plugin Name: ATT Consent
* Plugin URI: https://github.com/att-consent/att-consent
* Description: Google Consent Mode v2 cookie consent with session attribution preservation, custom script management, and full gtag.js/GTM support.
* Version: 1.3.3
* Requires at least: 6.0
* Requires PHP: 7.4
* Author: ATT Consent
* Author URI: https://github.com/att-consent
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: att-consent
* Domain Path: /languages
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
define( 'ATT_CC_VERSION', '1.3.3' );
define( 'ATT_CC_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'ATT_CC_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'ATT_CC_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
require_once ATT_CC_PLUGIN_DIR . 'includes/class-att-consent.php';
register_activation_hook( __FILE__, array( 'ATT_Consent', 'activate' ) );
register_deactivation_hook( __FILE__, array( 'ATT_Consent', 'deactivate' ) );
ATT_Consent::get_instance();