G
G
Grisha Nikolsky2015-11-05 20:27:11
WordPress
Grisha Nikolsky, 2015-11-05 20:27:11

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

1 answer(s)
W
WP Panda, 2015-11-06
@VoxelGod

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 question

Ask a Question

731 491 924 answers to any question