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:

functions.php
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.

  1. All In One Login icon 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
  2. Ultimate Dashboard icon Ultimate Dashboard50,000+ installs apply_filters( 'lost_password_html_link', $html_link ) modules/login-customizer/templates/udb-login-page.php:400
  3. Login Page Styler icon Login Page Styler2,000+ installs apply_filters( 'lost_password_html_link', $html_link ) lpsnewLogin.php:165
  4. Productive Commerce icon Productive Commerce40+ installs apply_filters( 'lost_password_html_link', $html_link ) admin/common/options/global/global-settings-admin.php:3651
  5. PASS Addons icon PASS Addons20+ installs apply_filters( 'lost_password_html_link', $html_link ) admin/common/options/global/global-settings-admin.php:3651
  6. Productive Forms icon Productive Forms10+ installs apply_filters( 'lost_password_html_link', $html_link ) admin/common/options/global/global-settings-admin.php:3651
  7. Productive Style icon Productive Style10+ installs apply_filters( 'lost_password_html_link', $html_link ) admin/common/options/global/global-settings-admin.php:3651
  8. Productive Demo Importer icon Productive Demo Importer10+ installs apply_filters( 'lost_password_html_link', $html_link ) admin/common/options/global/global-settings-admin.php:3651
  9. PASS AI icon 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.