HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //home/pbyh.co.uk/public_html/wp-content/plugins/complianz-gdpr/integrations/plugins/buttonizer.php
<?php
function cmplz_buttonizer_consent() {
	?>
	<script>
		document.addEventListener('cmplz_before_cookiebanner', function() {
			if (cmplz_has_consent('statistics')) {
				enableButtonizer();
			}
		});
		document.addEventListener('cmplz_status_change', function (e) {
			if (e.detail.category === 'statistics' && e.detail.value==='allow') {
				enableButtonizer();
			}
		});
	</script>
	<?php
}
add_action( 'wp_footer', 'cmplz_buttonizer_consent' );