0

I have three login pages set up for different languages (it's how we had to set our site up for a whole host of reasons around our site). We've got wp-login.php, wp-login_cn.php (Chinese) and wp-login_jp.php (Japanese).

Everything works fine except for when there is a login error. For example, if the user enters the wrong password, they are redirected to 'wp-login.php' regardless of which login page they are on. I'm pretty sure it is in the backend/core files of WordPress somewhere because I don't see that redirect anymore in the actual PHP code in the wp-login.php file.

Does anyone know how I can keep the page from redirecting to the wp-login.php when it's on the other language pages? Thanks!

1 Answer 1

1

There's actually a hook for this: wp_login_failed.

3
  • Ok great, will try this now and then check back with you if it worked. Thanks! Jun 29, 2013 at 0:16
  • Unfortunately that didn't do the trick, it's still redirecting back to the English page. I'll look at the code a little more deeply and see if I can work something around it... Jun 29, 2013 at 3:31
  • It's strange because I'm writing out the 'referrer' variable to the console to check and see if it's correct and it's picking up the correct 'referrer' value but it still directs back to the English page...I'll keep looking into, this was a good thing to start with. Jun 29, 2013 at 3:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.