Skip to content

Instantly share code, notes, and snippets.

@bmoredrew
Created December 14, 2012 09:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • 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