PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/rfstoolsupply.com/wp-content/plugins/complianz-gdpr/integrations/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/rfstoolsupply.com/wp-content/plugins/complianz-gdpr/integrations/fields.php |
<?php defined( 'ABSPATH' ) or die( "you do not have access to this page!" ); add_filter( 'cmplz_fields_load_types', 'cmplz_filter_integration_fields', 10, 1 ); function cmplz_filter_integration_fields( $fields ) { global $cmplz_integrations_list; $plugin_fields = array(); $disabled_plugin_fields = array(); $enabled_plugin_fields = array(); foreach ( $cmplz_integrations_list as $plugin => $details ) { $file = apply_filters( 'cmplz_integration_path', cmplz_path . "integrations/plugins/$plugin.php", $plugin ); if ( file_exists( $file ) ) { $plugin_fields[ $plugin ] = array( 'source' => 'integrations', 'type' => 'checkbox', 'default' => false, 'revoke_consent_onchange' => false, 'label' => $details['label'], 'table' => true, 'disabled' => true, ); if ( isset( $details['callback_condition'] ) ) { $plugin_fields[ $plugin ]['callback_condition'] = $details['callback_condition']; } $theme = wp_get_theme(); if ( defined( $details['constant_or_function'] ) || function_exists( $details['constant_or_function'] ) || class_exists( $details['constant_or_function'] ) || ($theme && ($theme->name === $details['constant_or_function']) ) || ($theme->parent() !== false && trim( $theme->parent()->Name ) === trim( $details['constant_or_function'] ) ) ) { $plugin_fields[ $plugin ]['disabled'] = false; $plugin_fields[ $plugin ]['default'] = true; $enabled_plugin_fields[ $plugin ] = $plugin_fields[ $plugin ]; } else { $disabled_plugin_fields[ $plugin ] = $plugin_fields[ $plugin ]; } } } //now make sure enabled ones are first $fields = $fields + $enabled_plugin_fields; return $fields; }