Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Help with “use a filter with the ID of the blog” etc.


Cam
Participant

@crazycoolcam

@boonebgorges

I am a complete newbie when it comes to this. I tried to utilize the funciton you created above and it results in an error: Unexpected return.

I imagine I am missing something obvious but here is my code:
`function my_blog_avatar_1( $old_avatar ) {
bp_core_fetch_avatar( array( ‘item_id’ => ‘1’, ‘type’ => $type, ‘alt’ => $alt, ‘width’ => $width, ‘height’ => $height, ‘class’ => $class ) ) // Do some stuff to get the avatar you want, then
return $new_avatar;
}
add_filter( ‘bp_get_blog_avatar_1?, ‘my_blog_avatar_1’ );`

Thanks in advance for your help.

Skip to toolbar