bp_groups_clear_invite_count_on_send( int $group_id, array $invited_users )
Clear a user’s cached total group invite count when a new invite is sent.
Description
Parameters
- $group_id
-
(Required) The group ID. Not used in this function.
- $invited_users
-
(Required) Array of invited user IDs.
Source
File: bp-groups/bp-groups-cache.php
function bp_groups_clear_invite_count_on_send( $group_id, $invited_users ) { foreach ( $invited_users as $user_id ) { bp_groups_clear_invite_count_for_user( $user_id ); } }
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.