Skip to content

Instantly share code, notes, and snippets.



Last active Aug 24, 2016
What would you like to do?
// functions.php code...
$geoip2_country_code = get_geoip2_country_code( get_visitor_IP() );
if ( $geoip2_country_code == 'HR' ) {
wp_redirect( $lander_URL ); exit;
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.