diff --git a/templates/gdpr-register.php b/templates/gdpr-register.php index c89e43b7..e1537693 100644 --- a/templates/gdpr-register.php +++ b/templates/gdpr-register.php @@ -12,7 +12,12 @@ * @var object $um_content_query * @var array $args */ -if ( ! defined( 'ABSPATH' ) ) exit; ?> +if ( ! defined( 'ABSPATH' ) ) exit; + +// The "Privacy Policy" field content can not contain forms. +$allowed_html = UM()->get_allowed_html( 'templates' ); +unset( $allowed_html['form'] ); +?>