Filter hook 'lost_password_html_link'

in WP Core File wp-login.php at line 1588

View Source

lost_password_html_link

Filter Hook
Description
Filters the link that allows the user to reset the lost password.

Hook Information

File Location wp-login.php View on GitHub
Hook Type Filter
Line Number 1588

Hook Parameters

Type Name Description
string $html_link HTML link to the lost password form.

Usage Examples

Basic Usage
<?php
// Hook into lost_password_html_link
add_filter('lost_password_html_link', 'my_custom_filter', 10, 1);

function my_custom_filter($html_link) {
    // Your custom filtering logic here
    return $html_link;
}

Source Code Context

wp-login.php:1588 - How this hook is used in WordPress core
<?php
1583  				 *
1584  				 * @since 6.1.0
1585  				 *
1586  				 * @param string $html_link HTML link to the lost password form.
1587  				 */
1588  				echo apply_filters( 'lost_password_html_link', $html_link );
1589  
1590  				?>
1591  			</p>
1592  			<?php
1593  		}

PHP Documentation

<?php
/**
				 * Filters the link that allows the user to reset the lost password.
				 *
				 * @since 6.1.0
				 *
				 * @param string $html_link HTML link to the lost password form.
				 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-login.php
Related Hooks

Related hooks will be displayed here in future updates.