BP_Groups_Template::rewind_groups()

Rewind the groups and reset member index.

Description

Source

File: bp-groups/classes/class-bp-groups-template.php

	function rewind_groups() {
		$this->current_group = -1;
		if ( $this->group_count > 0 ) {
			$this->group = $this->groups[0];
		}
	}

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.