[CBC_COUNTRY /] behaving strangely
-
I have this code in a plugin
$country = strip_tags( do_shortcode( “[CBC_COUNTRY /]” ) );
$ip = strip_tags( do_shortcode( “[CBC_IP /]” ) );It returns my country which I’m using in an if/then statement to set some variables.
Using a VPN I “change” countries – the $ip variable always updates and shows my new country, but the $country always displays my “real” country and not the new one associated with the $ip.
Can you suggest how this can be fixed?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[CBC_COUNTRY /] behaving strangely’ is closed to new replies.