The Privacy Suite for WordPress

Changing the text in your legal documents

Get compliant today in the European Union, United States, Canada, United Kingdom, Australia, Brazil & South Africa with the only Privacy Suite for WordPress that offers a fully-featured plugin for Worldwide Compliance.

The below solution will keep your documents synchronized to the Wizard and To manually edit your documents without synchronization, please read this article.

A quick introduction

Why do we propose changing your texts by way of functions.php, hooks and filters?

The policies are generated by our wizard and placed via shortcode. This has 2 main reasons: updates & translations.

The Wizard and policies are drafted by our specialized legal team, with upcoming changes in GDPR, ePrivacy and other privacy laws, together with the need for different languages, the best way is to update through shortcode. Hassle-free for our users.

When changing the text directly, the above updates are no longer possible and will undermine the functionality of the plugin. To resolve this, most changes can be made with a code snippet in your theme’s functions.php. This will minimize the problem of updating legal texts and translations.

Making your own code snippet (or filter).

Below is the code needed to change your text, adding this to your theme’s functions.php will do the trick. When adding to functions.php, remove the first line with <?php. This is not necessary when added as MU-plugin.


  • The filter (and you) needs to know which string to change or replace. This means there should be an identifier in both your old and new string to signify it should be replaced.
    • For example: If you want to change: “Red apples are sold out” to “Red apples are on sale”. You will need to start the new string with “Red apples are” to show which string it should replace. For complicated changes you can ask support!
    • The more unique the string, by wording or characters, the better.
  • Please rename or copy your current functions.php as a back-up
  • If you have a child theme, please use the functions.php of your child theme. Or even better, place the code in a must use plugin.

The Code

Replace a single string

Replace multiple strings

Recent articles

The Privacy Suite for WordPress
Get compliant today with the only Privacy Suite made for WordPress


Popular articles

LGPD Brazil and WordPress

The “Marco Civil” and the Brazilian General Data Protection Law (LGPD) In Complianz 5.4 we will add full support for the Civil Rights Framework for

Read More

Join our mailing list - 8 Tips & Tricks in your inbox over the next 8 weeks!