groups_get_current_group()
Get the BP_Groups_Group object corresponding to the current group.
Description Description
Return Return
(BP_Groups_Group) The current group object.
Source Source
File: bp-groups/bp-groups-functions.php
function groups_get_current_group() {
$bp = buddypress();
$current_group = isset( $bp->groups->current_group )
? $bp->groups->current_group
: false;
/**
* Filters the BP_Groups_Group object corresponding to the current group.
*
* @since 1.5.0
*
* @param BP_Groups_Group $current_group Current BP_Groups_Group object.
*/
return apply_filters( 'groups_get_current_group', $current_group );
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |