BP_Core_Members_Template::members()
Whether there are members left in the loop to iterate over.
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
Return
(bool) True if there are more members to show, otherwise false.
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 BuddyPress 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;
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 1.2.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.