Notifications
Clear all

[Solved] How do I stop the user from being notified when they are downvoted, but still get notified of other reactions?

2 Posts
2 Users
1 Reactions
344 Views
Posts: 103
Topic starter
(@vanessa)
Estimable Member
Joined: 2 years ago

I'd like to prevent the user from being notified when they are downvoted, but still notify the user of other reactions.

We're using the advanced reactions add-on.

Is this possible?

We can add a code snippet to functions.php if someone can share as well.

 

Thanks!

1 Reply
BlackRaz
Posts: 392
Admin
(@blackraz)
Contributor
Joined: 9 years ago
add_action( 'wpforo_after_init', function() {
remove_action( 'wpforo_vote', [WPF()->activity, 'after_vote'], 10 );
}, 111 );