Title: login_site_html_link
Published: March 9, 2021
Last modified: May 20, 2026

---

# apply_filters( ‘login_site_html_link’, string $link )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/login_site_html_link/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/login_site_html_link/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/login_site_html_link/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/login_site_html_link/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/hooks/login_site_html_link/?output_format=md#user-contributed-notes)

[ Back to top](https://developer.wordpress.org/reference/hooks/login_site_html_link/?output_format=md#wp--skip-link--target)

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

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/login_site_html_link/?output_format=md#parameters)󠁿

 `$link`string

HTML link to the home URL of the current site.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/login_site_html_link/?output_format=md#source)󠁿

    ```php
    echo apply_filters( 'login_site_html_link', $html_link );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-login.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-login.php#L349)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-login.php#L349-L349)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/login_site_html_link/?output_format=md#related)󠁿

| Used by | Description | 
| [login_footer()](https://developer.wordpress.org/reference/functions/login_footer/)`wp-login.php` |

Outputs the footer for the login page.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/login_site_html_link/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.7.0](https://developer.wordpress.org/reference/since/5.7.0/) | Introduced. |

## 󠀁[User Contributed Notes](https://developer.wordpress.org/reference/hooks/login_site_html_link/?output_format=md#user-contributed-notes)󠁿

 1.  [Skip to note 2 content](https://developer.wordpress.org/reference/hooks/login_site_html_link/?output_format=md#comment-content-6939)
 2.   [Muhammad Arslan](https://profiles.wordpress.org/wparslan/)  [  2 years ago  ](https://developer.wordpress.org/reference/hooks/login_site_html_link/#comment-6939)
 3. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Flogin_site_html_link%2F%23comment-6939)
    Vote results for this note: 0[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Flogin_site_html_link%2F%23comment-6939)
 4. Modify the “Go to site” link displayed in the login page footer.
     Copy and paste
    the following the child theme’s function.php file at the very end.
 5.     ```php
        add_filter( 'login_site_html_link', 'wpdocs_login_site_html_link_cb' );
    
        /**
         * Filters the “Go to site” link displayed in the login page footer.
         *
         * @return string $html_link Modified "Go to Site" link.
         */
        function wpdocs_login_site_html_link_cb() {
        	$html_link = sprintf(
        		'%s',
        		esc_url( home_url( '/' ) ),
        		sprintf(
        			/* translators: %s: Site title. */
        			_x( '← Go to %s', 'site' ),
        			get_bloginfo( 'title', 'display' )
        		)
        	);
    
        	return $html_link;
        }
        ```
    
 6.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Flogin_site_html_link%2F%3Freplytocom%3D6939%23feedback-editor-6939)

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Flogin_site_html_link%2F)
before being able to contribute a note or feedback.