Skip to:
Content
Pages
Categories
Search
Top
Bottom

Group avatar in activity

  • Profile photo of arzuman26
    arzuman26
    Participant

    @arzuman26

    Help please. How can I remove group avatar from activity? Avatar displays in posts like %1$s created the group %2$s.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Profile photo of arzuman26
    arzuman26
    Participant

    @arzuman26

    Help please.

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    hi @arzuman26,

    try this (add to bp-custom or functions.php)

    function remove_group_activity_avatar() {
    	if ( bp_is_active( 'activity' ) || 'groups' == $object && bp_is_active( 'groups' ) ) {
    		$avatar = false;
    	}
    }
    add_filter( 'bp_get_activity_secondary_avatar', 'remove_group_activity_avatar' );
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar