Change the back to the blog link in WordPress 5.7

Change the back to the blog link in WordPress 5.7 on your child site.

Snippet Type

Execute on Child Sites

Snippet

function wporg_login_site_html_link( $link ) {
        return '<a href="' . esc_url( home_url( '/' ) ) . '">' . __( 'Back to the website', 'text-domain' ) . '</a>';
}
add_filter( 'login_site_html_link', 'wporg_login_site_html_link', 10, 1 );
1 Like