Created
August 22, 2018 08:43
-
-
Save kLOsk/ba50f46c294cb8dc21c0f586df35c29f to your computer and use it in GitHub Desktop.
This file contains 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('pll_redirect_home', 'home_redirection', 10); | |
function home_redirection($redirect) { | |
//$user_agent = $_SERVER['HTTP_USER_AGENT']; | |
//if(strpos( $user_agent, 'Yeti') !== false) { | |
$redirect = 'http://gogoespana.test/kr/'; | |
//} | |
return $redirect; | |
//return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment