Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: new custom post to profile and group activity stream.

@shanebp

Moderator

add_filter should always return something.

Try this:

 // snipped
        $activity->content = $activity_content;
    }
    return $activity; 
}

Or this:

 // snipped
        $activity_action = sprintf(__('%1$s posted a new reward : %2$s', 'buddypress'), bp_core_get_userlink((int) $post->post_author), '<a href="' . $post_permalink . '">' . $post->post_title . '</a>');
       
    }
   return $activity_action; 
}
Skip to toolbar