Skip to:
Content
Pages
Categories
Search
Top
Bottom

Group Invites Count

  • @fanoop

    Participant

    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)
  • @mjbenzon

    Participant

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

Viewing 1 replies (of 1 total)
  • The topic ‘Group Invites Count’ is closed to new replies.
Skip to toolbar