Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: User/Group avatar URL *without* IMG tag

@ankitsachan

Participant

We may also use some pHp Functions to get Image src only for Groups…

$cenrte_avatar = bp_get_group_avatar( ‘type=full’ );
$substr = substr( $cenrte_avatar, 0, strpos( $cenrte_avatar, ‘” class=”‘ ) );
$centre_avatar_src = str_replace( ‘<img src=”‘, ”, $substr ) ;

Thanks

Skip to toolbar