bp_groups_accept_request_mark_notifications( int $user_id, int $group_id )

Mark notifications read when a member’s group membership request is granted.

Parameters Parameters


(int) (Required) ID of the user.


(int) (Required) ID of the group.

Source Source

File: bp-groups/bp-groups-notifications.php

function bp_groups_accept_request_mark_notifications( $user_id, $group_id ) {
	if ( bp_is_active( 'notifications' ) ) {
		// First null parameter marks read for all admins.
		bp_notifications_mark_notifications_by_item_id( null, $group_id, buddypress()->groups->id, 'new_membership_request', $user_id );

Top ↑

Changelog Changelog

Version Description
2.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.