This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: Disable Complianz Cron | |
| * Description: Disables the cmplz_every_five_minutes_hook cron job | |
| */ | |
| // Remove the already scheduled event | |
| add_action('init', function() { | |
| wp_clear_scheduled_hook('cmplz_every_five_minutes_hook'); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Add a custom point 8 to the Privacy Statement | |
| * Remove line 1 if implemented in functions.php instead of an mu-plugin | |
| */ | |
| function cmplz_edit_privacy_document_html($html, $region, $post_id) { | |
| // Only modify the Privacy Statement EU (not Cookie Policy) ------- PLEASE INSERT THE SLUG OF THE PRIVACY STATEMENT PAGE | |
| $post = get_post($post_id); | |
| if (!$post || $post->post_name !== 'privacy-statement-eu') { | |
| return $html; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Add a custom point 8 to the Cookie Policy | |
| * Remove line 1 if implemented in functions.php instead of an mu-plugin | |
| */ | |
| function cmplz_edit_document_html($html) { | |
| // Your new point 8 | |
| $punto_8 = ' | |
| <h2>8. Titolo del tuo punto personalizzato</h2> | |
| <p>Qui inserisci il testo del tuo punto 8. Scrivi tutte le informazioni che vuoi aggiungere alla tua cookie policy.</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function disable_obfuscate_email() { | |
| remove_all_filters( 'cmplz_document_email' ); | |
| add_filter( 'cmplz_document_email', function( $email ) { | |
| return $email; | |
| }, 10, 1 ); | |
| } | |
| add_action( 'init', 'disable_obfuscate_email', 99 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| defined( 'ABSPATH' ) or die( "you do not have access to this page!" ); | |
| /** | |
| * Add custom css to banner css file | |
| * @return void | |
| */ | |
| function add_my_custom_banner_css() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Wait for DOM to be ready | |
| document.addEventListener('DOMContentLoaded', function() { | |
| // Select the privacy statement link | |
| const privacystatementLink = document.querySelector('.cmplz-documents.cmplz-links .cmplz-link.privacy-statement'); | |
| // Check if the privacy statement link exists | |
| if (privacystatementLink) { | |
| // Change the text only if it matches "Privacy Statement" | |
| if (privacystatementLink.textContent.trim() === 'Privacy Statement') { | |
| privacystatementLink.textContent = 'privacy'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Ultimate Maps Integration for Complianz GDPR | |
| */ | |
| defined( 'ABSPATH' ) || die( 'You do not have access to this page!' ); | |
| /** | |
| * Register Ultimate Maps scripts with Complianz. | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| document.addEventListener("DOMContentLoaded", function() { | |
| document.querySelectorAll("a.cmplz-link.cookie-statement").forEach(function(link) { | |
| link.setAttribute("target", "_blank"); | |
| link.setAttribute("rel", "noopener noreferrer"); | |
| }); | |
| document.querySelectorAll("a.cmplz-link.privacy-statement").forEach(function(link) { | |
| link.setAttribute("target", "_blank"); | |
| link.setAttribute("rel", "noopener noreferrer"); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| // Wait for DOM to be ready | |
| document.addEventListener('DOMContentLoaded', function() { | |
| const privacystatementLink = document.querySelector('.cmplz-documents.cmplz-links .cmplz-link.privacy-statement'); | |
| if (privacystatementLink) { | |
| privacystatementLink.textContent = 'your_text'; // Change the text inside the link | |
| } | |
| const cookiestatementLink = document.querySelector('.cmplz-documents.cmplz-links .cmplz-link.cookie-statement'); |
NewerOlder