Notifications
Clear all

Limited Support

Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.

We appreciate your patience and understanding while our team is away. Thank you for being part of the wpForo community!

Merry Christmas and Happy Holidays! 🎄

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

4 Posts
2 Users
3 Reactions
1,617 Views
Posts: 103
Topic starter
(@vanessa)
Estimable Member
Joined: 2 years 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: 991
Moderator
(@martin)
Support Team
Joined: 9 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: 2 years ago

Estimable Member
Posts: 103

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

This will help a lot!


Posts: 103
Topic starter
(@vanessa)
Estimable Member
Joined: 2 years ago

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

Appreciate the help!