Server IP : 168.119.101.163  /  Your IP : 216.73.217.54
Web Server : Apache/2
System : Linux web02.webzuiver.nl 4.18.0-553.126.2.lve.el8.x86_64 #1 SMP Thu May 28 14:12:30 UTC 2026 x86_64
User : equine ( 1027)
PHP Version : 8.1.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/equine/public_html/wp-content/plugins/complianz-gdpr-premium/pro/settings/fields/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/equine/public_html/wp-content/plugins/complianz-gdpr-premium/pro/settings/fields/tools.php
<?php
/**
 * Premium Tools fields.
 *
 * @package Complianz
 * @author Complianz
 * @since 7.5.5
 */

defined( 'ABSPATH' ) || die();

/**
 * Filter the 'cmplz_fields' array to include fields in the 'Tools' page.
 *
 * @param array $fields the fields array.
 * @return array the fields array.
 */
function cmplz_add_pro_tools( $fields ) {
	// Add the TCF debug_mode field only when IAB TCF is enabled.
	if ( cmplz_iab_is_enabled() ) {
		$fields = array_merge(
			$fields,
			array(
				array(
					'id'       => 'tcf_debug_mode',
					'menu_id'  => 'support',
					'group_id' => 'debugging',
					'type'     => 'checkbox',
					'default'  => false,
					'label'    => __( 'Enable TCF Debug mode', 'complianz-gdpr' ),
					'tooltip'  => __( 'Overrides default behavior to enable additional TCF logging and diagnostics. If SCRIPT_DEBUG is enabled in wp-config.php, Debug mode is enabled regardless of this setting.', 'complianz-gdpr' ),
				),
			)
		);
	}

	return $fields;
}
add_filter( 'cmplz_fields', 'cmplz_add_pro_tools', 100, 1 );