BP_Groups_Invite_Template::invites()
Finishes up the invites to show.
Description
Return
(bool)
Source
File: bp-groups/classes/class-bp-groups-invite-template.php
public function invites() {
$tick = intval( $this->current_invite + 1 );
if ( $tick < $this->invite_count ) {
return true;
} elseif ( $tick == $this->invite_count ) {
/**
* Fires right before the rewinding of invites list.
*
* @since BuddyPress 1.1.0
* @since BuddyPress 2.3.0 `$this` parameter added.
* @since BuddyPress 2.7.0 Action renamed from `loop_start`.
*
* @param BP_Groups_Invite_Template $this Instance of the current Invites template.
*/
do_action( 'group_invitation_loop_end', $this );
// Do some cleaning up after the loop
$this->rewind_invites();
}
$this->in_the_loop = false;
return false;
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 1.1.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.