bp_groups_screen_my_groups_mark_notifications ()
标记当成员查看其组成员身份时读取的通知。
描述
源
文件:bp-groups / bp-groups-notifications.php
function bp_groups_screen_my_groups_mark_notifications(){//删除用户组请求通知。if (isset($_GET['n']) && bp_is_active('notifications')){//获取必要的ID。$ group_id = buddypress() - >组> id;$ user_id = bp_loggedin_user_id ();//标记通知读取。Bp_notifications_mark_notifications_by_type ($user_id, $group_id, 'membership_request_accepted');Bp_notifications_mark_notifications_by_type ($user_id, $group_id, 'membership_request_rejected');Bp_notifications_mark_notifications_by_type ($user_id, $group_id, 'member_promoted_to_mod');Bp_notifications_mark_notifications_by_type ($user_id, $group_id, 'member_promoted_to_admin');} }
更新日志
版本 | 描述 |
---|---|
BuddyPress 1.9.0 | 介绍了。 |