apply_filters( ‘lostpassword_redirect’, string $lostpassword_redirect )

Filters the URL redirected to after submitting the lostpassword/retrievepassword form.

Parameters

$lostpassword_redirectstring
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

$redirect_to = apply_filters( 'lostpassword_redirect', $lostpassword_redirect );

Changelog

VersionDescription
3.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.