lost_password_html_link
Filters the link that allows the user to reset the lost password.
Usage
add_filter( 'lost_password_html_link', 'wp_kama_lost_password_html_link_filter' ); /** * Function for `lost_password_html_link` filter-hook. * * @param string $html_link HTML link to the lost password form. * * @return string */ function wp_kama_lost_password_html_link_filter( $html_link ){ // filter... return $html_link; }
- $html_link(string)
- HTML link to the lost password form.
Changelog
Since 6.1.0 | Introduced. |
Where the hook is called
In file: /wp-login.php
lost_password_html_link
wp-login.php 1580
echo apply_filters( 'lost_password_html_link', $html_link );
wp-login.php 1197
echo apply_filters( 'lost_password_html_link', $html_link );