Notifications
Clear all

Script [Solved] Only show new topics and replies on BuddyPress activity, not every like

4 Posts
2 Users
3 Reactions
549 Views
Posts: 94
Topic starter
(@vanessa)
Estimable Member
Joined: 9 months ago

When setting the BuddyPress Activity integration it shows activity for every time someone likes a post.

This can get quite overwhelming.

How can I keep the notifications going to BuddyPress activity for topics and replies, but not for likes?

3 Replies
Posts: 988
Moderator
(@martin)
Support Team
Joined: 8 years ago

Hi @vanessa,

You can use this hook script in a PHP code snippet of Code Snippets plugin or in the functions.php of current active theme. However you should wait for wpForo 2.2.4 and higher versions, it'll be released within next 1-2 days:

function custom_buddypress_activity_types( $activity_types ){
	return ['wpforo_topic', 'wpforo_post'];
}
add_filter( 'wpforo_buddypress_activity_types', 'custom_buddypress_activity_types');
1 Reply
(@vanessa)
Joined: 9 months ago

Estimable Member
Posts: 94

@martin Magic, thank you. Will wait until 2.2.4 before giving it a go.

This will help a lot!

Posts: 94
Topic starter
(@vanessa)
Estimable Member
Joined: 9 months ago

thx, just replying to confirm that this works as expected with 2.2.6.

Appreciate the help!