Created
December 14, 2012 09:10
-
-
Save bmoredrew/4283901 to your computer and use it in GitHub Desktop.
utm redirect
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
function utm_welcome_redirect() { | |
if ( !is_user_logged_in() ) { | |
wp_redirect('http://www.universaltimemiami.com/welcome'); | |
exit(); | |
} | |
else { | |
wp_redirect('http://www.universaltimemiami.com/'); | |
exit(); | |
} | |
} | |
add_action('template_redirect', 'utm_welcome_redirect'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment