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

	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

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.