After user logins WordPress by default will redirect the user to the dashboard page. If you want to change the location redirected to after logging in, you can use the filter
Below is a sample usage of this filter and you can find the details in codex.
Getting it further, let’s give user more control of the login process and make them be able to choose the location after logging in in the login form.
First, we’ll add a new field of select option in the login form.
login_form‘ action hook fires following the “password” field in the login form. See the codex here.
Then we’ll need to perform user’s option after them logging in.
Here, we’re checking whether a valid value for the select field has been sent. If so, the switch statement set a value for
$redirect_to variable depending on the option selected by the user.