Skip to content

Instantly share code, notes, and snippets.

@bmoredrew
Created December 14, 2012 09:10
Show Gist options
  • Save bmoredrew/4283901 to your computer and use it in GitHub Desktop.
Save bmoredrew/4283901 to your computer and use it in GitHub Desktop.
utm redirect
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