BP_Media_Album_Template::next_album()

Set up the next album item and iterate index.

Description

Return

(object) The next album item to iterate over.

Source

File: bp-media/classes/class-bp-media-album-template.php

	public function next_album() {
		$this->current_album++;
		$this->album = $this->albums[ $this->current_album ];

		return $this->album;
	}

Changelog

Changelog
Version Description
BuddyBoss 1.0.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.