Created
March 6, 2016 19:54
-
-
Save OscarAbadFolgueira/b42b0faab59675b26e17 to your computer and use it in GitHub Desktop.
WordPress Snippet: Cambiar la url del logo de login
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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