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.


Top ↑

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.

Top ↑

Source

File: wp-login.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.