Get Group_ID from Group Name?
Is there a BP function that returns the group_id value when fed the group_name value? I’ve been trying to use bp_get_group_id() and bp_group_id(), but I don’t think I’m using them properly.
I want to be able to say
$group_id = bp_get_grou_id(“mygroupname”);
… and have it assign the group_id for “mygroupname” to $group_id.
Should be easy, yes?
The topic ‘Get Group_ID from Group Name?’ is closed to new replies.