Created
November 11, 2015 13:56
-
-
Save champsupertramp/cc50671cb1ae056a1f59 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 | |
/*** | |
*** @Do not apply to backend default avatars | |
***/ | |
add_filter('avatar_defaults', 'um_avatar_defaults', 99999 ); | |
function um_avatar_defaults($avatar_defaults) { | |
remove_filter('get_avatar', 'um_get_avatar', 99999, 5); | |
return $avatar_defaults; | |
} | |
?> |
Just remove_filter('get_avatar', 'um_get_avatar', 99999, 5);
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
does not work any more.