Created
July 21, 2016 12:08
-
-
Save sbrajesh/8976217b285217d47a396e8502938a2a 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 hidden or 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