You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to make a simple modification to how "Manage consent" element is structured. Instead of overwriting the whole manage-consent.php file I've used the cmplz_manage_consent_html filter present in your code. But it is in fact unusable because of how the "variable" replacement code is placed before the content can be filtered.
To be more specific. Here is the code that replaces all "variables" denoted by curly brackets.
So I can't use the "variables" in the HTML fed to the cmplz_manage_consent_html as they will not get properly replaced by the first mentioned chunk of code.
I wanted to make a simple modification to how "Manage consent" element is structured. Instead of overwriting the whole
manage-consent.php
file I've used thecmplz_manage_consent_html
filter present in your code. But it is in fact unusable because of how the "variable" replacement code is placed before the content can be filtered.To be more specific. Here is the code that replaces all "variables" denoted by curly brackets.
complianz-gdpr/cookiebanner/class-banner-loader.php
Lines 361 to 373 in 5a830a1
And some lines later is the part that lets me overwite the html of this element
complianz-gdpr/cookiebanner/class-banner-loader.php
Lines 382 to 384 in 5a830a1
So I can't use the "variables" in the HTML fed to the
cmplz_manage_consent_html
as they will not get properly replaced by the first mentioned chunk of code.To fix this:
First, change
complianz-gdpr/cookiebanner/class-banner-loader.php
Line 358 in 5a830a1
$temp_manage_consent_html = apply_filters( "cmplz_manage_consent_html", $manage_consent_html );
Second, change the
apply_filters( "cmplz_manage_consent_html", $manage_consent_html )
incomplianz-gdpr/cookiebanner/class-banner-loader.php
Line 384 in 5a830a1
$manage_consent_html
as at this step you simply use what you have.PS The same can be said and done about the
cmplz_banner_html
filter.The text was updated successfully, but these errors were encountered: