Created
October 12, 2017 09:08
-
-
Save kirasiris/35ccf855e72bbdcb52c895d3c3a2b6fc to your computer and use it in GitHub Desktop.
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 | |
//Change default gravatar image | |
add_filter( 'avatar_defaults', 'wpb_new_gravatar' ); | |
function wpb_new_gravatar ($avatar_defaults) { | |
$myavatar = 'https://vignette3.wikia.nocookie.net/assassinscreed/images/4/4b/ACI_Default.jpg/revision/latest?cb=20150322230631'; | |
$avatar_defaults[$myavatar] = "Default Gravatar"; | |
return $avatar_defaults; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment