lostpassword_url WordPress Filter Hook

The lostpassword_url hook is used to retrieve the URL for the lost password page. This can be useful for customizing the lost password page URL or for adding custom query parameters to the URL.

apply_filters( 'lostpassword_url', string $lostpassword_url, string $redirect ) #

Filters the Lost Password URL.


Parameters

$lostpassword_url

(string)The lost password page URL.

$redirect

(string)The path to redirect to on login.


Top ↑

More Information

The filter is applied to the URL returned by the function wp_lostpassword_url(), allowing the developer to have that function direct users to a specific (different) URL for retrieving a lost password.


Top ↑

Source

File: wp-includes/general-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.8.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.

Show More
Show More