Tagged: buddypress, group, Notifications
Hi,
Welcome to BuddyDev support forums.Please put this code in your bp-custom.php
function bpcustom_only_enable_for_group_admin_mod_posts( $stop_notification, $activity ) { $group_id = $activity->item_id; $logged_id = get_current_user_id(); if ( ! groups_is_user_admin( $logged_id, $group_id ) && ! groups_is_user_mod( $logged_id, $group_id ) ) { $stop_notification = true; } return $stop_notification; } add_filter( 'bp_local_group_notifier_skip_notification', 'bpcustom_only_enable_for_group_admin_mod_posts', 10, 2 );
That will limit it to group admin/mods.
Regards
Brajesh
Viewing 4 posts - 1 through 4 (of 4 total)
The topic ‘ [Resolved] Group Activities Notifier when Admin/Moderator’ is closed to new replies.
This topic is: resolved