bp_groups_clear_invite_count_for_user( int $user_id )
Clear a user’s cached total group invite count.
Description
Count is cleared when an invite is accepted, rejected or deleted.
Parameters
- $user_id
-
(Required) The user ID.
Source
File: bp-groups/bp-groups-cache.php
function bp_groups_clear_invite_count_for_user( $user_id ) {
wp_cache_delete( $user_id, 'bp_group_invite_count' );
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 2.0.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.