PATH:
home
/
urbaoubp
/
gns.pitgradnja.com
/
wp-content
/
plugins
/
complianz-gdpr
/
integrations
/
plugins
<?php defined( 'ABSPATH' ) or die( "you do not have access to this page!" ); /** * Set analytics as suggested stats tool in the wizard */ add_filter( 'cmplz_default_value', 'cmplz_beehive_set_default', 20, 3 ); function cmplz_beehive_set_default( $value, $fieldname, $field ) { if ( $fieldname === 'compile_statistics' ) { return "google-analytics"; } return $value; } /** * We remove some actions to integrate fully * */ function cmplz_beehive_remove_scripts_others() { remove_action( 'cmplz_statistics_script', array( COMPLIANZ::$banner_loader, 'get_statistics_script' ), 10 ); } add_action( 'after_setup_theme', 'cmplz_beehive_remove_scripts_others' ); /** * Remove stats * * */ function cmplz_beehive_show_compile_statistics_notice($notices) { //find notice with field_id 'compile_statistics' and replace it with our own $text = ''; if ( cmplz_no_ip_addresses() ) { $text .= __( "You have selected you anonymize IP addresses. This setting is now enabled in Beehive.", 'complianz-gdpr' ); } if ( cmplz_statistics_no_sharing_allowed() ) { $text .= __( "You have selected you do not share data with third-party networks. Display advertising is now disabled in Beehive.", 'complianz-gdpr' ); } $notice = [ 'field_id' => 'compile_statistics', 'label' => 'default', 'title' => __( "Statistics plugin detected", 'complianz-gdpr' ), 'text' => cmplz_sprintf( __( "You use %s, which means the answer to this question should be Google Analytics.", 'complianz-gdpr' ), 'Beehive' ) .' '.$text, ]; $found_key = false; foreach ($notices as $key=>$notice) { if ($notice['field_id']==='compile_statistics') { $found_key = $key; } } if ($found_key){ $notices[$found_key] = $notice; } else { $notices[] = $notice; } return $notices; } add_filter( 'cmplz_field_notices', 'cmplz_beehive_show_compile_statistics_notice' ); add_filter( 'beehive_get_options', 'cmplz_beehive_options', 10, 2 ); function cmplz_beehive_options( $options, $network ) { //handle anonymization if ( cmplz_no_ip_addresses() ) { $options['general']['anonymize'] = true; } //handle sharing of data if ( cmplz_statistics_no_sharing_allowed() ) { $options['general']['advertising'] = false; } return $options; } /** * Make sure there's no warning about configuring GA anymore * * @param $warnings * * @return mixed */ function cmplz_beehive_filter_warnings( $warnings ) { unset( $warnings[ 'ga-needs-configuring' ] ); return $warnings; } add_filter( 'cmplz_warning_types', 'cmplz_beehive_filter_warnings' ); /** * Hide the stats configuration options when Beehive is enabled. * * @param $fields * * @return mixed */ function cmplz_beehive_filter_fields( $fields ) { $index = cmplz_get_field_index('compile_statistics_more_info', $fields); if ($index!==false) unset($fields[$index]['help']); return cmplz_remove_field( $fields, [ 'configuration_by_complianz', 'ua_code', 'aw_code', 'additional_gtags_stats', 'additional_gtags_marketing', 'consent-mode', 'gtag-basic-consent-mode', 'cmplz-gtag-urlpassthrough', 'cmplz-gtag-ads_data_redaction', 'gtm_code', 'cmplz-tm-template' ]); } add_filter( 'cmplz_fields', 'cmplz_beehive_filter_fields', 200, 1 );
[-] volocation.php
[edit]
[-] clarity.php
[edit]
[-] ultimate-addons-elementor.php
[edit]
[-] themify-builder.php
[edit]
[-] omgf.php
[edit]
[-] wp-google-maps.php
[edit]
[-] activecampaign.php
[edit]
[-] wp-google-maps-widget.php
[edit]
[-] caos-host-analytics-local.php
[edit]
[-] index.php
[edit]
[-] pixelyoursite.php
[edit]
[-] amp.php
[edit]
[-] content-views-plugin.php
[edit]
[-] weglot-translate.php
[edit]
[-] wpadverts.php
[edit]
[-] tidio-live-chat.php
[edit]
[-] woocommerce.php
[edit]
[-] contact-form-7.php
[edit]
[-] yotu-wp.php
[edit]
[-] sumo.php
[edit]
[-] pixelyoursite-bing.php
[edit]
[-] woocommerce-variation-swatches.php
[edit]
[-] happyforms.php
[edit]
[-] advanced-nocaptcha-recaptcha.php
[edit]
[-] pixelyoursite-pinterest.php
[edit]
[-] bb-powerpack.php
[edit]
[-] user-registration.php
[edit]
[-] simple-business-directory.php
[edit]
[-] forminator-addon-registration.php
[edit]
[-] trustpulse.php
[edit]
[-] google-site-kit.php
[edit]
[-] novo-map.php
[edit]
[-] buttonizer.php
[edit]
[-] primavera.php
[edit]
[-] omnisend.php
[edit]
[-] facebook-for-wordpress.php
[edit]
[-] hcaptcha.php
[edit]
[-] rate-my-post.php
[edit]
[-] wp-store-locator.php
[edit]
[-] burst-statistics.php
[edit]
[-] welaunch-store-locator.php
[edit]
[-] google-analytics-dashboard-for-wp.php
[edit]
[-] pixel-caffeine.php
[edit]
[-] uncode.php
[edit]
[-] easy-liveblogs.php
[edit]
[-] generatepress-maps.php
[edit]
[-] colibriwp.php
[edit]
[-] disable-and-remove-google-fonts.php
[edit]
[-] advanced-ads.php
[edit]
[-] invisible-recaptcha.php
[edit]
[-] gravity-forms.php
[edit]
[-] qtranslate.php
[edit]
[-] jetpack.php
[edit]
[-] elementor.php
[edit]
[-] lead-forensics.php
[edit]
[-] wp-google-map-plugin.php
[edit]
[-] woocommerce-google-analytics-pro.php
[edit]
[-] superfly-menu.php
[edit]
[-] wp-donottrack.php
[edit]
[-] greenshift.php
[edit]
[-] presto-player.php
[edit]
[-] lazy-loader.php
[edit]
[-] google-tagmanager-for-wordpress.php
[edit]
[-] wpforms.php
[edit]
[-] avada-maps.php
[edit]
[-] mailchimp-woocommerce.php
[edit]
[-] theeventscalendar.php
[edit]
[-] acf.php
[edit]
[-] facebook-for-woocommerce.php
[edit]
[+]
..
[-] forminator-addon-class-v2.php
[edit]
[-] nudgify.php
[edit]
[-] agile-store-locator.php
[edit]
[-] divi-plugin.php
[edit]
[-] addtoany.php
[edit]
[-] woocommerce-google-analytics-integration.php
[edit]
[-] super-socializer.php
[edit]
[-] embed-google-fonts.php
[edit]
[-] meks-easy-maps.php
[edit]
[-] flexible-map.php
[edit]
[-] map-multi-marker.php
[edit]
[-] citadela-directory.php
[edit]
[-] wp-consent-api.php
[edit]
[-] olympus-google-fonts.php
[edit]
[-] podcast-player.php
[edit]
[-] pixelyoursite-pro.php
[edit]
[-] so-widgets-bundle.php
[edit]
[-] thrive.php
[edit]
[-] easy-fancybox.php
[edit]
[-] osm.php
[edit]
[-] monsterinsights.php
[edit]
[-] forminator.php
[edit]
[-] user-registration-pro.php
[edit]
[-] google-maps-easy.php
[edit]
[-] geo-my-wp.php
[edit]
[-] use-any-font.php
[edit]
[-] g1-gmaps.php
[edit]
[-] wp-video-lightbox.php
[edit]
[-] forminator-addon-class.php
[edit]
[-] divi.php
[edit]
[-] wp-rocket.php
[edit]
[+]
elementor-pro
[-] beehive.php
[edit]
[-] local-google-fonts.php
[edit]
[-] beaver-builder.php
[edit]