WordPress filter hook
lost_password_html_link
Fired by 9 WordPress plugins, running on 112K+ sites between them.
“This filter is documented in wp-login.php”
How to use lost_password_html_link
It's a filter: your callback receives the value, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'lost_password_html_link', function( $html_link ) {
// Change $html_link here.
return $html_link;
}, 10, 1 );Argument names come from Ultimate Dashboard's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
9 plugins that fire lost_password_html_link
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
All In One Login60,000+ installs
apply_filters( 'lost_password_html_link', $lost_password_link )includes/login-customization/class-login-customization-output-free.php:280 -
Ultimate Dashboard50,000+ installs
apply_filters( 'lost_password_html_link', $html_link )modules/login-customizer/templates/udb-login-page.php:400 -
Login Page Styler2,000+ installs
apply_filters( 'lost_password_html_link', $html_link )lpsnewLogin.php:165 -
Productive Commerce40+ installs
apply_filters( 'lost_password_html_link', $html_link )admin/common/options/global/global-settings-admin.php:3651 -
PASS Addons20+ installs
apply_filters( 'lost_password_html_link', $html_link )admin/common/options/global/global-settings-admin.php:3651 -
Productive Forms10+ installs
apply_filters( 'lost_password_html_link', $html_link )admin/common/options/global/global-settings-admin.php:3651 -
Productive Style10+ installs
apply_filters( 'lost_password_html_link', $html_link )admin/common/options/global/global-settings-admin.php:3651 -
Productive Demo Importer10+ installs
apply_filters( 'lost_password_html_link', $html_link )admin/common/options/global/global-settings-admin.php:3651 -
PASS AIFewer than 10 installs
apply_filters( 'lost_password_html_link', $html_link )admin/common/options/global/global-settings-admin.php:3651
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.