BP_Media_Album_Template::user_albums()
Whether there are album items left in the loop to iterate over.
Description
This method is used by bp_albums() as part of the while loop that controls iteration inside the album loop, eg: while ( bp_albums() ) { …
See also
Return
(bool) True if there are more album items to show, otherwise false.
Source
File: bp-media/classes/class-bp-media-album-template.php
public function user_albums() {
if ( ( $this->current_album + 1 ) < $this->album_count ) {
return true;
} elseif ( ( $this->current_album + 1 ) == $this->album_count ) {
/**
* Fires right before the rewinding of album posts.
*
* @since BuddyBoss 1.0.0
*/
do_action( 'album_loop_end' );
// Do some cleaning up after the loop.
$this->rewind_albums();
}
$this->in_the_loop = false;
return false;
}
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.