Problem/Use Case:
By default, the WordPress login logo links to wordpress.org. You may want it to point to your homepage.
Snippet:
// Change login logo URL
function custom_login_logo_url() {
return home_url();
}
add_filter('login_headerurl', 'custom_login_logo_url');
Explanation:
This redirects the login logo link to your site’s homepage.
Where to Place It:
In functions.php. or a custom snippet plugin
Bonus Tip:
Pair this with a custom logo for a fully branded login page.