I have custom login form that displays a logout link after a user has logged in.

I'm running into an issue when clicking log out. Wordpress redirects the user to a url with the parameter loggedout=true when logging back in.

How can I make it so this parameter will be ignored in the referer url when logging in?

  • Have you already seen wp_loginout()? – kaiser Nov 6 '14 at 22:21
  • Unfortunately, that won't work in my scenario as there are different elements that need to be displayed based on whether the user is logged in or out. :( – user1462 Nov 6 '14 at 22:33
  • Please look at the source again. That's what that function does. – kaiser Nov 6 '14 at 22:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.