Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

[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
478 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: 396
Admin
(@blackraz)
Contributor
Joined: 9 years ago
add_action( 'wpforo_after_init', function() {
remove_action( 'wpforo_vote', [WPF()->activity, 'after_vote'], 10 );
}, 111 );