Viewing 1 replies (of 1 total)
  • To get the current group parent id:

    $parentid = $bp->groups->current_group->parent_id;

    Outside the loop, you can use this if you have the group id:

    $group = new BP_Groups_Hierarchy($groupid);
    $parentid = $group->parent_id;

Viewing 1 replies (of 1 total)
  • The topic ‘how to get group parent id’ is closed to new replies.