Skip to:
Content
Pages
Categories
Search
Top
Bottom

Group Invites Count

  • Avatar of Fanoop
    Keith Kelly
    Participant

    @fanoop

    I am looking for a function that would allow me to count how many group invitation that a user has. I found the groups_get_invites_for_user() function, but that doesn’t return the count.

    I was hoping there was a similar function as bp_friend_get_total_requests_count().

    Anyone aware of anything out there?

Viewing 1 replies (of 1 total)
  • Avatar of mjbenzon
    mjbenzon
    Participant

    @mjbenzon

    Try this:
    $groups = groups_get_invites_for_user(bp_loggedin_user_id());
    $groupsInviteCount = $groups['total'];

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.