Notifications
Clear all

wpForo 1.x.x [Solved] About users's notificacions

3 Posts
2 Users
1 Reactions
728 Views
Posts: 21
Topic starter
(@alber)
Eminent Member
Joined: 4 years ago

¿Is there any code or modification for only show mentions and replies?

2 Replies
Robert
Posts: 10520
Admin
(@robert)
Support Team
Joined: 8 years ago

Hi @alber,

Yes, you should put this custom code in your current active WordPress functions.php file:

function my_custom_foro_notifications_filter( $args ){
if( !empty($args) ){
$args['types_exclude'] = array('new_like', 'new_up_vote', 'new_down_vote');
}
return $args;
}
add_filter('wpforo_get_notifications_args', 'my_custom_foro_notifications_filter', 10, 1);

How to Easily Add Custom Code in WordPress (without Breaking Your Site)

Posts: 21
Topic starter
(@alber)
Eminent Member
Joined: 4 years ago

THANKS!