vendidero / woocommerce-germanized

Adapt WooCommerce to the German Market with Germanized for WooCommerce
https://vendidero.de/woocommerce-germanized
Other
52 stars 44 forks source link

GDPR - woocommerce account registration - allow shortcodes #78

Closed s-a-s-k-i-a closed 6 years ago

s-a-s-k-i-a commented 6 years ago

Hi there! Could you please either allow shortcode usage in this field: dsgvo-germanized

OR/AND provide a shortcode permission filter for theme functions.php?

This would come in handy for a wordpress multisite I set up with multiple sites using the same theme, which comes with region settings, where each lets say franchiser can insert their gdpr relevant data such as email, postal address, phone number, etc. I set up a shortcode which puts out a text which dynamically adapts itself to each franchiser within the network and also makes use of the new gdpr privacy page option that came with wp 4.9.6 ( get_privacy_policy_url(); ).

Thanks so much!

dennisnissle commented 6 years ago

Hi there,

the text is actually outputted via a template (woocommerce-germanized/myaccount/form-register-checkbox.php). We will furthermore add a filter ("woocommerce_gzd_customer_account_privacy_policy_text") to adjust the text.

Cheers

s-a-s-k-i-a commented 6 years ago

In latest version the mentioned template has been removed from plugin core so my adjustment is lst. Is the filter in place, because when I grep for woocommerce_gzd_customer_account_privacy_policy_text the search delivers no results

Best Saskia

s-a-s-k-i-a commented 6 years ago

Found it. I am using this filter now to modify label output of privacy checkbox in registration page: woocommerce_gzd_legal_checkbox_privacy_label