/** * Get the total group invite count for a user. * * @since 2.0.0 * * @param int $user_id The user ID. * * @return int */ 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); }