Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save OscarAbadFolgueira/b42b0faab59675b26e17 to your computer and use it in GitHub Desktop.
Save OscarAbadFolgueira/b42b0faab59675b26e17 to your computer and use it in GitHub Desktop.
WordPress Snippet: Cambiar la url del logo de login
<?php
/**
* This WordPress code snippet change the url of the login logo of your WordPress site.
*
* Author: Oscar Abad Folgueira
* Author URI: http://www.oscarabadfolgueira.com
*
* You can copy this snippet and paste in your functions.php or you can build your own plugin
*
* Change the url to your needs.
*/
add_filter( 'login_headerurl', 'oaf_my_login_logo_url' );
function oaf_my_login_logo_url ($url) {
return 'http://www.oscarabadfolgueira.com';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment