Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,881
- Creating & Extending
- 25,912
- Requests & Feedback
- 9,553
- Third Party Plugins
- 9,834
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,184
-
$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()