groups_get_invite_count_for_user( int $user_id )
Get the total group invite count for a user.
Description Description
Parameters Parameters
- $user_id
-
(Required) The user ID.
Return Return
(int)
Source Source
File: bp-groups/bp-groups-functions.php
function groups_get_invite_count_for_user( $user_id = 0 ) {
if ( empty( $user_id ) ) {
$user_id = bp_loggedin_user_id();
}
return count( groups_get_invited_to_group_ids( $user_id ) );
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |