Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save toluaddy/9e46a9bbba438e5b441cec9ca666edc2 to your computer and use it in GitHub Desktop.
Save toluaddy/9e46a9bbba438e5b441cec9ca666edc2 to your computer and use it in GitHub Desktop.
//Do not notify for join group activity in BP Local group Activity notifier
function buddydev_do_not_notify_join_group_activity( $stop_notification, $activity ) {
if ( $activity->type == 'joined_group' ) {
$stop_notification = true;
}
return $stop_notification;
}
add_filter( 'bp_local_group_notifier_skip_notification', 'buddydev_do_not_notify_join_group_activity', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment