Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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

zakirsajib commented Jul 9, 2019

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