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:
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.
-
Really Simple Security3+ million installs
apply_filters( 'login_site_html_link', $html_link )security/wordpress/two-fa/function-login-footer.php:42 -
LoginPress200,000+ installs
apply_filters( 'login_site_html_link', $html_link )include/template-loginpress.php:295 -
Two Factor100,000+ installs
apply_filters( 'login_site_html_link', $html_link )includes/function.login-footer.php:40 -
Hide My WP Ghost100,000+ installs
apply_filters( 'login_site_html_link', $html_link )view/wplogin/footer.php:56 -
WP Hide & Security Enhancer50,000+ installs
apply_filters( 'login_site_html_link', $html_link )modules/components/login_2fa_template_login_footer.php:42 -
Ultimate Dashboard50,000+ installs
apply_filters( 'login_site_html_link', $html_link )modules/login-customizer/templates/udb-login-page.php:255 -
SecuPress with Simple SSL40,000+ installs
apply_filters( 'login_site_html_link', $html_link )free/functions/formatting.php:396 -
Login Page Styler2,000+ installs
apply_filters( 'login_site_html_link', $html_link )lpsnewLogin.php:188 -
Admin Optimizer100+ installs
apply_filters( 'login_site_html_link', $html_link )modules/2fa/includes/wp-2fa-login.php:327 -
Fuerte-WP70+ installs
apply_filters( 'login_site_html_link', $html_link )includes/two-factor/includes/function.login-footer.php:41 -
Login by Magic10+ installs
apply_filters( 'login_site_html_link', $html_link )templates/form-login.php:29 -
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.