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
This accounts for situations where group admins or mods are added manually using BP_Groups_Member::save(). Usually via a plugin.
Parameters
- $member
-
(Required) Member object.
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 ); }
Changelog
Version | Description |
---|---|
BuddyPress 2.1.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.