bp_groups_clear_group_members_caches( BP_Groups_Group $group_obj, array $user_ids )

Clears caches for all members in a group when a group is deleted.

Description

Parameters

$group_obj

(BP_Groups_Group) (Required) Group object.

$user_ids

(array) (Required) User IDs who were in this group.

Source

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

function bp_groups_clear_group_members_caches( $group_obj, $user_ids ) {
	// Clears the 'total groups' cache for each member in a group.
	foreach ( (array) $user_ids as $user_id )
		groups_clear_group_user_object_cache( $group_obj->id, $user_id );
}

Changelog

Changelog
Version Description
BuddyPress 1.6.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.