Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alicolville/6e5b5a3537a420de9557ffe045dddaa2 to your computer and use it in GitHub Desktop.
Save alicolville/6e5b5a3537a420de9557ffe045dddaa2 to your computer and use it in GitHub Desktop.
WLT Redirect with is_home() condition added
// If we're on the Wizard page or not on a page or not logged in, just exit. Otherwise we'll end up in a loop!
if ( false !== strpos($_SERVER['REQUEST_URI'], '/wizard/') || false === is_page() || false === is_user_logged_in() || true === is_home() ) {
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment