BP_Document_Folder_Template::the_folder()
Set up the current folder item inside the loop.
Description
Used by bp_the_folder() to set up the current folder item data while looping, so that template tags used during that iteration make reference to the current folder item.
See also
Source
File: bp-document/classes/class-bp-document-folder-template.php
public function the_folder() {
$this->in_the_loop = true;
$this->folder = $this->next_folder();
if ( is_array( $this->folder ) ) {
$this->folder = (object) $this->folder;
}
// Loop has just started.
if ( $this->current_folder == 0 ) {
/**
* Fires if the current folder item is the first in the activity loop.
*
* @since BuddyBoss 1.4.0
*/
do_action( 'folder_loop_start' );
}
}
Changelog
| Version | Description |
|---|---|
| BuddyBoss 1.4.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.