BP_Groups_Template::the_group()
Set up the current group inside the loop.
Description Description
Used by bp_the_group() to set up the current group data while looping, so that template tags used during that iteration make reference to the current member.
See also See also
Source Source
File: bp-groups/classes/class-bp-groups-template.php
function the_group() {
$this->in_the_loop = true;
$this->group = $this->next_group();
if ( 0 == $this->current_group ) {
/**
* Fires if the current group item is the first in the loop.
*
* @since 1.1.0
*/
do_action( 'group_loop_start' );
}
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.2.0 | Introduced. |