string $lostpassword_redirect )
Filters the URL redirected to after submitting the lostpassword/retrievepassword form.
The redirect destination URL.
lostpassword_redirectfilter is used to change the location redirected to after a user requests a password reset. This could be the location set by the “redirect_to” parameter sent to the forgot password page.
- This filter is to redirect the user following reset of the password. To filter the location of the password reset itself, use lostpassword_url.
View all references
$redirect_to = apply_filters( 'lostpassword_redirect', $lostpassword_redirect );
Example migrated from Codex:
This simple example will redirect a user to the home_url() upon successful password reset.