WordPressのログインページのロゴを変更する方法

以下のコードをfunctions.phpに入れてください。

function custom_login_logo() {
    echo '<style type="text/css">
        .login h1 a {
          background-image: url(logo.svg) ; // ロゴのURLを指定すること
          background-position: center center;
		  background-size: contain;
	      width: 100%;
        }
    </style>';
}
add_action('login_head', 'custom_login_logo');

function login_url(){
return "https://genxnotes.com"; // 自分のサイトのURLを入力すること
}
add_filter('login_headerurl', 'login_url');