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

268
269
270
271
272
273
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.