bp_groups_delete_group_delete_all_notifications( int $group_id )

Remove all notifications for any member belonging to a specific group.

Description

Parameters

$group_id

(int) (Required) ID of the group.

Source

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

function bp_groups_delete_group_delete_all_notifications( $group_id ) {
	if ( bp_is_active( 'notifications' ) ) {
		bp_notifications_delete_all_notifications_by_type( $group_id, buddypress()->groups->id );
	}
}

Changelog

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.