Query Group Info from Just the ID
I’m looking for a way to take the group variable that’s passed into the registration page (ie: $referring_groupid = $bp->action_variables and being able to query for the information for the group with that ID.
I guess I could use bp_has_groups() and scroll through the list to see if it exists. However, that seems like the hard and “expensive” way to do it. Is there a way to just query for a specific group’s info based on the id for that group? I think that in WP you could use a WP_query or something. Is there something similar that I could use in BP?
- The topic ‘Query Group Info from Just the ID’ is closed to new replies.