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


Top ↑

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' );
		}
	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.