Complianz Privacy Suite

Changing the read more URL on the cookie banner

Rogier Lankhorst

Rogier Lankhorst

Categories

Popular articles

Upgrade to Google Analytics 4

If you want to upgrade to Google Analytics 4 you will need to upgrade your tracking code. If you have implemented Analytics with Complianz, please

Read More

TCF for WordPress

The Transparency Consent Framework (TCF) is an initiative by IAB Europe and IAB Tech Lab to provide a platform for vendors, publishers, and consent management

Read More

TCF V2.0 release (Update)

Update: Released on October 5th 2020 Since August 15th the Transparency and Consent Framework V2.0 from IAB Europe or TCF V2 has been adapted by

Read More
Share on facebook
Facebook
Share on twitter
Twitter
Share on linkedin
LinkedIn

WordPress offers filter hooks to allow plugins to modify various types of internal data at runtime.

A plugin can modify data by binding a callback to a filter hook. When the filter is later applied, each bound callback is run in order of priority, and given the opportunity to modify a value by returning a new value.

Call the following function in your theme’s functions.php file. Replace the URL with your preferred result.

How to add filters you ask? Read this article to know more about filters and hooks.



/**
* @param array $output
* @return array $output
*/
function cmplz_edit_cookie_settings($output){
$output['readmore_url']['eu'] = "https://swissin.ch/privacy-policy/";
$output['readmore_url']['us'] = "https://swissin.ch/privacy-policy/";
$output['readmore_url']['uk'] = "https://swissin.ch/privacy-policy/";

return $output;
}
add_filter('cmplz_cookie_settings', 'cmplz_edit_cookie_settings’);

Recent articles

Subscribe