BP_Media_Template::next_media()

Set up the next media item and iterate index.

Description

Return

(object) The next media item to iterate over.

Source

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

	public function next_media() {
		$this->current_media++;
		$this->media = $this->medias[ $this->current_media ];

		return $this->media;
	}

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.