Done !
| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/v/e/r/verseaumee/blueversion/wp-content/plugins/complianz-gdpr/integrations/plugins/ |
Upload File : |
<?php
defined( 'ABSPATH' ) or die( "you do not have access to this page!" );
if ( !cmplz_integration_plugin_is_enabled( 'google-maps-easy' ) &&
!cmplz_integration_plugin_is_enabled( 'g1-maps' ) &&
!cmplz_integration_plugin_is_enabled( 'generatepress-maps' ) &&
!cmplz_integration_plugin_is_enabled( 'map-multi-marker' ) &&
!cmplz_integration_plugin_is_enabled( 'wp-google-maps' ) &&
!cmplz_integration_plugin_is_enabled( 'avada-maps' ) &&
!cmplz_integration_plugin_is_enabled( 'uncode' ) &&
!cmplz_integration_plugin_is_enabled( 'wp-google-maps-widget' )
) {
add_filter( 'cmplz_known_script_tags', 'cmplz_acf_script' );
}
function cmplz_acf_script( $tags ) {
if( acf_get_setting('enqueue_google_maps') ) {
$tags[] = [
'name' => 'acf-custom-maps',
'urls' => [
'google.maps.MapTypeId',
'maps.googleapis.com/maps/api/js'
],
'category' => 'marketing',
'enable_placeholder' => '1',
'placeholder' => 'google-maps',
'placeholder_class' => 'acf-map',
'enable_dependency' => '1',
'dependency' => [
'maps.googleapis.com/maps/api/js' => 'google.maps.MapTypeId'
],
];
}
return $tags;
}