groups_get_invite_count_for_user( int $user_id )
Get the total group invite count for a user.
Description
Parameters
- $user_id
-
(Required) The user ID.
Return
(int)
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 BP_Groups_Member::get_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.