groups_clear_group_administrator_cache( int $group_id )

Clear group administrator and moderator cache.

Description

Parameters

$group_id

(Required) The group ID.

Source

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

function groups_clear_group_administrator_cache( $group_id ) {
	wp_cache_delete( $group_id, 'bp_group_admins' );
	wp_cache_delete( $group_id, 'bp_group_mods' );
}

Changelog

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.