BP_Core_Members_Template::members()

Whether there are members left in the loop to iterate over.


Description Description

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

See also See also


Top ↑

Return Return

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


Top ↑

Source Source

File: bp-members/classes/class-bp-core-members-template.php

	function members() {
		if ( $this->current_member + 1 < $this->member_count ) {
			return true;
		} elseif ( $this->current_member + 1 == $this->member_count ) {

			/**
			 * Fires right before the rewinding of members listing.
			 *
			 * @since 1.5.0
			 */
			do_action('member_loop_end');
			// Do some cleaning up after the loop.
			$this->rewind_members();
		}

		$this->in_the_loop = false;
		return false;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.