400

How to Change the WordPress Login Page Logo URL

Powered by WPCodeBox

This snippet allows you to easily change the URL of the logo on your WordPress login page, which by default links to the WordPress site.


<?php

/**
 * Replaces the login header logo URL
 *
 * @param $url
 */

add_filter( 'login_headerurl', function ( $url ) {
    $url = home_url( '/' );
    return $url;
} );

Other Snippets

WPCodeBox is a WordPress Code Snippets Manager that allows you to share your WordPress Code Snippets across your sites.