Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save champsupertramp/cc50671cb1ae056a1f59 to your computer and use it in GitHub Desktop.
Save champsupertramp/cc50671cb1ae056a1f59 to your computer and use it in GitHub Desktop.
<?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;
}
?>
@zakirsajib
Copy link

does not work any more.

@pije76
Copy link

pije76 commented Aug 26, 2019

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