lostpassword_redirect WordPress Filter Hook
The lostpassword_redirect hook is used to redirect users who have lost their password. This hook is triggered when a user tries to reset their password.
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
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |