Last active
May 27, 2021 20:27
-
-
Save AertHulsebos/ac4a3cd321d0e9ff7de0b5e49546501d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter("cmplz_region_for_country", "my_cmplz_override_region", 10, 2); | |
| function my_cmplz_override_region($region, $country_code){ | |
| //if country code is 'CH'(Switzerland) , return us as region, so banner will behave as for EU | |
| if ($country_code === 'CH'){ | |
| $region = 'eu'; | |
| } | |
| return $region; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment