Change WordPress Backend Logo

Use the snippet below to change the WordPress backend logo:

add_action('admin_head', 'wpkb_backend_logo');

function wpkb_backend_logo() {
   echo '<style type="text/css">
         #header-logo { background-image: url('.get_bloginfo('template_directory').'/images/custom-logo.png) !important; }</style>';
}