Skip to content

Instantly share code, notes, and snippets.

@indikatordesign indikatordesign/functions.php Secret
Last active May 11, 2018

Embed
What would you like to do?
[Bloom - GDPR - Text override settings]
<?php
// If you want to change your texts for the overlay on certain pages, then open the "functions.php"
// of your theme and use the following snippet. Customize the text to your needs.
// This function is possible since version 1.0.5
add_filter( 'bgop_overlay_messages', function( $messages )
{
if ( is_page( [ 'my-awesome-page', 'New Infos for your Health', 1234 ] ) ) // add pages by slug, title, id
{
$company = 'Company Name';
$messages['linkBefore'] = 'This form stores the data entered as explained in our'; // text before the link
$messages['linkName'] = 'Our Privacy Policy'; // the link name
$messages['linkHref'] = 'https://example.com/privacy/'; // the link itself
$messages['linkAfter'] = 'You can revoke at any time.'; // text after the link
$messages['company'] = $company;
$messages['agree'] = "I hereby agree to my data being stored by {$company}."; // Agreement next to the checkbox
} // end if
return $messages;
}); // end add_filter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.