WordPress filter hook

login_site_html_link

Fired by 12 WordPress plugins, running on 3.5M+ sites between them.

“Filter the "Go to site" link displayed in the login page footer.”

How to use login_site_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( 'login_site_html_link', function( $html_link ) {
	// Change $html_link here.
	return $html_link;
}, 10, 1 );

Argument names come from Really Simple Security's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

12 plugins that fire login_site_html_link

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. Really Simple Security icon Really Simple Security3+ million installs apply_filters( 'login_site_html_link', $html_link ) security/wordpress/two-fa/function-login-footer.php:42
  2. LoginPress icon LoginPress200,000+ installs apply_filters( 'login_site_html_link', $html_link ) include/template-loginpress.php:295
  3. Two Factor icon Two Factor100,000+ installs apply_filters( 'login_site_html_link', $html_link ) includes/function.login-footer.php:40
  4. Hide My WP Ghost icon Hide My WP Ghost100,000+ installs apply_filters( 'login_site_html_link', $html_link ) view/wplogin/footer.php:56
  5. WP Hide & Security Enhancer icon WP Hide & Security Enhancer50,000+ installs apply_filters( 'login_site_html_link', $html_link ) modules/components/login_2fa_template_login_footer.php:42
  6. Ultimate Dashboard icon Ultimate Dashboard50,000+ installs apply_filters( 'login_site_html_link', $html_link ) modules/login-customizer/templates/udb-login-page.php:255
  7. SecuPress with Simple SSL icon SecuPress with Simple SSL40,000+ installs apply_filters( 'login_site_html_link', $html_link ) free/functions/formatting.php:396
  8. Login Page Styler icon Login Page Styler2,000+ installs apply_filters( 'login_site_html_link', $html_link ) lpsnewLogin.php:188
  9. Admin Optimizer icon Admin Optimizer100+ installs apply_filters( 'login_site_html_link', $html_link ) modules/2fa/includes/wp-2fa-login.php:327
  10. Fuerte-WP icon Fuerte-WP70+ installs apply_filters( 'login_site_html_link', $html_link ) includes/two-factor/includes/function.login-footer.php:41
  11. Login by Magic icon Login by Magic10+ installs apply_filters( 'login_site_html_link', $html_link ) templates/form-login.php:29
  12. OnzAuth icon OnzAuth10+ installs apply_filters( 'login_site_html_link', $html_link ) templates/form-login.php:29

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.