Skip to content

Instantly share code, notes, and snippets.

@DomagojGojak

DomagojGojak/functions.php

Last active Aug 24, 2016
Embed
What would you like to do?
<?php
// 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.