HEX
Server: nginx/1.26.3
System: Linux tnswh.tainosystems.com 6.12.74+deb13+1-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.74-2 (2026-03-08) x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/clients/client64/web77/web/wp-content/plugins/complianz-gdpr/config/dynamic-fields.php
<?php
defined( 'ABSPATH' ) or die( "you do not have access to this page!" );
add_filter( 'cmplz_fields_load_types', 'cmplz_filter_field_types', 10, 1 );
function cmplz_filter_field_types( $fields ) {
	/**
	 * Add dynamic purposes
	 *
	 * */
	if ( cmplz_has_region('us') || cmplz_get_value( 'privacy-statement' ) === 'generated' ) {
		$index = 10;
		foreach ( COMPLIANZ::$config->purposes as $key => $label ) {
			if ( ! empty( COMPLIANZ::$config->details_per_purpose_us ) ) {
				$index += 10;

				$fields = $fields +
			          array(
							$key . '_data_purpose_us' => array(
								'master_label' => __( "Purpose:", 'complianz-gdpr' ) . " " . $label,
								'step' => STEP_COMPANY,
								'order' => $index,
								'section' => 8,
								'source' => 'wizard',
								'type' => 'multicheckbox',
								'loadmore' => 13,
								'default' => '',
								'label' => __( "Specify the types of data you collect", 'complianz-gdpr' ),
								'required' => true,
								'callback_condition' => array(
									'purpose_personaldata' => $key
								),
								'options' => COMPLIANZ::$config->details_per_purpose_us,
							)
					);
			}
		}
	}

	return $fields;
}

function cmplz_filter_fields(  ) {
	if ( COMPLIANZ::$cookie_admin->site_needs_cookie_warning() ){
		COMPLIANZ::$config->fields['enable_cookie_banner']['disabled']=false;
		COMPLIANZ::$config->fields['enable_cookie_blocker']['disabled']=false;
	}

	if ( cmplz_get_value( 'compile_statistics' )==='matomo' && cmplz_get_value( 'matomo_anonymized' ) === 'yes' ) {
		COMPLIANZ::$config->fields['configuration_by_complianz']['disabled'] = array('no');
		COMPLIANZ::$config->fields['configuration_by_complianz']['default'] = 'yes';
		COMPLIANZ::$config->fields['configuration_by_complianz']['comment'] = __( "With Matomo cookieless tracking, configuration by Complianz is required.", 'complianz-gdpr' );
	}
}
add_filter( 'plugins_loaded', 'cmplz_filter_fields', 20, 1 );