groups_clear_group_administrator_cache_on_member_save( BP_Groups_Member $member )

Clear group administrator and moderator cache when a group member is saved.


Description Description

This accounts for situations where group admins or mods are added manually using BP_Groups_Member::save(). Usually via a plugin.


Top ↑

Parameters Parameters

$member

(BP_Groups_Member) (Required) Member object.


Source Source

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

function groups_clear_group_administrator_cache_on_member_save( BP_Groups_Member $member ) {
	groups_clear_group_administrator_cache( $member->group_id );
}


Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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