Created
July 16, 2014 11:15
-
-
Save lmm214/9d7a249f04a1ca8c56b3 to your computer and use it in GitHub Desktop.
WordPress 调用多说 Gravatar 头像
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
function duoshuo_avatar($avatar) { | |
$avatar = str_replace(array("www.gravatar.com","0.gravatar.com","1.gravatar.com","2.gravatar.com"),"gravatar.duoshuo.com",$avatar); | |
return $avatar; | |
} | |
add_filter( 'get_avatar', 'duoshuo_avatar', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment