BP_Document_Folder_Template::user_folders()

Whether there are folder items left in the loop to iterate over.

Description

This method is used by bp_folders() as part of the while loop that controls iteration inside the folder loop, eg: while ( bp_folders() ) { …

See also

Return

(bool) True if there are more folder items to show, otherwise false.

Source

File: bp-document/classes/class-bp-document-folder-template.php

	public function user_folders() {
		if ( ( $this->current_folder + 1 ) < $this->folder_count ) {
			return true;
		} elseif ( ( $this->current_folder + 1 ) == $this->folder_count ) {

			/**
			 * Fires right before the rewinding of folder posts.
			 *
			 * @since BuddyBoss 1.4.0
			 */
			do_action( 'folder_loop_end' );

			// Do some cleaning up after the loop.
			$this->rewind_folders();
		}

		$this->in_the_loop = false;

		return false;
	}

Changelog

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.