Forked from sbrajesh/buddypress-stop-group-join-notifications.php
Created
February 3, 2020 17:41
-
-
Save toluaddy/9e46a9bbba438e5b441cec9ca666edc2 to your computer and use it in GitHub Desktop.
It is to help avoid notifying for group join when using the https://buddydev.com/buddypress/introducing-bp-group-activities-notifier-plugin-for-buddypress/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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