BP_Groups_Template::the_group()
Set up the current group inside the loop.
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
Source
File: bp-groups/classes/class-bp-groups-template.php
395 396 397 398 399 400 401 402 403 404 405 406 407 408 | 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 BuddyPress 1.1.0 */ do_action( 'group_loop_start' ); } } |
Changelog
Version | Description |
---|---|
BuddyPress 1.2.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.