Filters the Lost Password URL.
Parameters
$lostpassword_urlstring- The lost password page URL.
$redirectstring- The path to redirect to on login.
Source
return apply_filters( 'lostpassword_url', $lostpassword_url, $redirect );
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
Example migrated from Codex:
The following example would return a lost password URL https://example.com/lostpassword/ for the wp_lostpassword_url() function: