bp_groups_accept_invite_mark_notifications( int $user_id, int $group_id )
Mark notifications read when a member accepts a group invitation.
Description
Parameters
- $user_id
-
(Required) ID of the user.
- $group_id
-
(Required) ID of the group.
Source
File: bp-groups/bp-groups-notifications.php
1099 1100 1101 1102 1103 | function bp_groups_accept_invite_mark_notifications( $user_id , $group_id ) { if ( bp_is_active( 'notifications' ) ) { bp_notifications_mark_notifications_by_item_id( $user_id , $group_id , buddypress()->groups->id, 'group_invite' ); } } |
Changelog
Version | Description |
---|---|
BuddyPress 1.9.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.