apply_filters( 'bp_activity_at_name_do_notifications', bool $value , array $usernames , int $user_id , BP_Activity_Activity $activity )
Filters BuddyPress’ ability to send email notifications for @mentions.
Parameters Parameters
- $value
-
(bool) Whether or not BuddyPress should send a notification to the mentioned users.
- $usernames
-
(array) Array of users potentially notified.
- $user_id
-
(int) ID of the current user being notified.
- $activity
-
(BP_Activity_Activity) Activity object.
Source Source
Changelog Changelog
Version | Description |
---|---|
2.5.0 | Introduced $user_id and $activity parameters. |
1.6.0 | Introduced. |