Answer the question
In order to leave comments, you need to log in
What is $_REQUEST[redirect_to] used for?
Hey! Quite often I stumble upon the following piece of code: $_REQUEST['redirect_to'].
The essence of the array itself is clear to me, but the 'redirect_to' variable is not. Please explain what this construct is used for and where this variable comes from.
Thanks in advance for your replies!
Answer the question
In order to leave comments, you need to log in
To redirect to the address specified in it
In your case, if it is not overridden, it is taken from here
when logging out
https://github.com/WordPress/WordPress/blob/77e365...
when recovering a password
https://github.com/WordPress /WordPress/blob/77e365...
when logging in
https://github.com/WordPress/WordPress/blob/77e365...
when logging in
https://github.com/WordPress/WordPress/blob/77e365...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question