Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: How to properly filter bp_member_avatar

@shanebp

Moderator

$defaults aren’t being passed by the filter.

Try:

add_filter('bp_member_avatar', 'mm_hide_name_in_alt_text', 1);
function mm_hide_name_in_alt_text( $var ) {
  var_dump( $var ); 
  return $var;
}

Then you should be able to tell what is being passed to the filter and adjust it accordingly.
You could also use the filters in bp_core_fetch_avatar()

Skip to toolbar