Load different content for users from different country [closed]
You may have to use a web service to get the user country using the user’s IP. There are a lot of them out there. I will tell you about one of them which is IP API . Here how to use it: $ip = $_SERVER[‘REMOTE_ADDR’]; $return = wp_remote_get(“http://ip-api.com/json/”.$ip); if ( is_wp_error( $return ) ) … Read more