I have noticed that a redirect_to parameter is added to wp-login.php URL when trying to access wp-admin, so from where does it come? I have tried to search into the wp-admin folder but lost.


Redirect parameter is created at auth_redirect function:


and it is added at wp_login_url function:


Your Answer

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

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