Sep 14, 2019 10:16 pm
Sometimes I reply to my post from another account and I get the notification, other times I don't. It's only working like 25% of the time. What could be the problem?
8 Replies
Sep 15, 2019 11:32 am
We just tested and didn't found any issue with UM Notification. Make sure you're not replied to your yourself or in your topic. it doesn't create notification if you reply yourself or in your topic.
Sep 16, 2019 5:31 pm
I found the solution to this problem. It was actually an Ultimate member problem. Anyone having same issue can add this filter to their site.
add_filter( 'um_notifications_exclude_types', 'um_notifications_exclude_types_wpforo' );
function um_notifications_exclude_types_wpforo( $exclude_type ){
array_push($exclude_type, "wpforo_user_reply", "wpforo_user_reply_to_reply");
return $exclude_type;
}
You can also exclude other things like profile views if you want UM to notify you of every profile view from the same user/guest:
add_filter( 'um_notifications_exclude_types', 'um_notifications_exclude_types_wpforo' );
function um_notifications_exclude_types_wpforo( $exclude_type ){
array_push($exclude_type, "wpforo_user_reply", "wpforo_user_reply_to_reply", "profile_view_guest", "profile_view");
return $exclude_type;
}