groups_get_invite_count_for_user( int $user_id )
Get the total group invite count for a user.
Parameters Parameters
- $user_id
-
(int) (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(); } $invites = groups_get_invites_for_user( $user_id ); return $invites['total']; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |