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 Description


Parameters Parameters

$group_id

(Required) ID of the group.

$group_obj

(Required) Group object.


Top ↑

Source 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 );
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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