HEX
Server: Apache/2.4.54 (Debian)
System: Linux a5825d2beacc 4.15.0-197-generic #208-Ubuntu SMP Tue Nov 1 17:23:37 UTC 2022 x86_64
User: root (0)
PHP: 8.1.14
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/complianz-gdpr/integrations/plugins/rate-my-post.php
<?php
defined( 'ABSPATH' ) or die( "you do not have access to this page!" );

/**
 * When the recaptcha integration is enabled, rate my post won't work anymore before consent.
 * We have to add the script to the cookieblocker to prevent dependency issues.
 */

add_filter( 'cmplz_known_script_tags', 'cmplz_ratemypost_script' );
function cmplz_ratemypost_script( $tags ) {

	if (cmplz_uses_thirdparty('google-recaptcha')) {
		$tags[] = '/js/rate-my-post';
	}

	return $tags;
}