BP_Media_Album_Template::the_album()
Set up the current album item inside the loop.
Description
Used by bp_the_album() to set up the current album item data while looping, so that template tags used during that iteration make reference to the current album item.
See also
Source
File: bp-media/classes/class-bp-media-album-template.php
public function the_album() {
$this->in_the_loop = true;
$this->album = $this->next_album();
if ( is_array( $this->album ) ) {
$this->album = (object) $this->album;
}
// Loop has just started.
if ( $this->current_album == 0 ) {
/**
* Fires if the current album item is the first in the activity loop.
*
* @since BuddyBoss 1.1.0
*/
do_action('album_loop_start');
}
}
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.