apply_filters( ‘login_site_html_link’, string $link )

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

Parameters

$linkstring
HTML link to the home URL of the current site.

Source

echo apply_filters( 'login_site_html_link', $html_link );

Changelog

VersionDescription
5.7.0Introduced.

User Contributed Notes

  1. Skip to note 2 content

    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.

    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;
    }

You must log in before being able to contribute a note or feedback.