bp_groups_clear_group_creator_cache( int $group_id, BP_Groups_Group $group_obj )

Clear caches for the group creator when a group is created.

Description

Parameters

$group_id

(Required) ID of the group.

$group_obj

(Required) Group object.

Source

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

function bp_groups_clear_group_creator_cache( $group_id, $group_obj ) {
	// Clears the 'total groups' for this user.
	groups_clear_group_user_object_cache( $group_obj->id, $group_obj->creator_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.