[insert_php]
if ( is_user_logged_in() ) {
$current_user = wp_get_current_user();
$slug = $_SERVER[“REQUEST_URI”];
//$groups = do_shortcode(‘‘);=
$groups=do_shortcode(‘‘);
// echo $groups;
if (strpos($groups, ‘San Diego’) !== false) {
$url = “http://www.leaders4m.com/san-diego”;
}
elseif (strpos($groups, ‘Atlanta’) !== false) {
$url = “http://www.leaders4m.com/atlanta”;
}
elseif (strpos($groups, ‘Brussels’) !== false) {
$url = “http://www.leaders4m.com/Brussels”;
}
elseif (strpos($groups, ‘Chicago’) !== false) {
$url = “http://www.leaders4m.com/Chicago”;
}
elseif (strpos($groups, ‘Dallas’) !== false) {
$url = “http://www.leaders4m.com/Dallas”;
}
elseif (strpos($groups, ‘London’) !== false) {
$url = “http://www.leaders4m.com/London”;
}
elseif (strpos($groups, ‘NewYork’) !== false) {
$url = “http://www.leaders4m.com/New%20York/”;
}
elseif (strpos($groups, ‘Philadelphia’) !== false) {
$url = “http://www.leaders4m.com/Philadelphia/”;
}

elseif (strpos($groups, ‘Registered’) !== false) {
$url = “http://www.leaders4m.com/Philadelphia/”;
}
// $url = “http://www.leaders4m.com/Philadelphia/”;
$b = ““;
echo $b;
//echo ““;
// echo $url;
//$redirect_to = $url;
//return $redirect_to;
// wp_redirect($url);
//header(“Location: http://www.leaders4m.com/Philadelphia/”);
//die();
// wp_redirect($url);
//return $url;
}

[/insert_php]