BP_Groups_Group_Members_Template::members()

Finishes up the members for display.

Description

Return

(bool)

Source

File: bp-groups/classes/class-bp-groups-group-members-template.php

238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
public function members() {
    $tick = intval( $this->current_member + 1 );
    if ( $tick < $this->member_count ) {
        return true;
    } elseif ( $tick == $this->member_count ) {
 
        /**
         * Fires right before the rewinding of members list.
         *
         * @since BuddyPress 1.0.0
         * @since BuddyPress 2.3.0 `$this` parameter added.
         * @since BuddyPress 2.7.0 Action renamed from `loop_end`.
         *
         * @param BP_Groups_Group_Members_Template $this Instance of the current Members template.
         */
        do_action( 'group_members_loop_end', $this );
 
        // Do some cleaning up after the loop.
        $this->rewind_members();
    }
 
    $this->in_the_loop = false;
    return false;
}

Changelog

Changelog
Version Description
BuddyPress 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.