apply_filters( 'lostpassword_redirect', string $lostpassword_redirect )
Filters the URL redirected to after submitting the lostpassword/retrievepassword form.
Parameters
-
$lostpassword_redirect
string -
The redirect destination URL.
More Information
- The
lostpassword_redirect
filter 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.
Source
File: wp-login.php
.
View all references
$redirect_to = apply_filters( 'lostpassword_redirect', $lostpassword_redirect );
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
Example migrated from Codex:
This simple example will redirect a user to the home_url() upon successful password reset.