BBP_User_Query::have_users()
Determines whether there are more users available in the loop.
Description Description
Calls the ‘loop_end’ action when the loop is complete.
Return Return
(bool) True if users are available, false if end of loop.
Source Source
File: includes/users/template.php
public function have_users() { if ( ( $this->current_user + 1 ) < $this->user_count ) { return true; } elseif ( ( ( $this->current_user + 1 ) === $this->user_count ) && ( $this->user_count > 0 ) ) { /** * Fires once the loop has ended. * * @since 2.6.0 bbPress (r6330) * * @param WP_Query &$this The WP_Query instance (passed by reference). */ do_action_ref_array( 'loop_end', array( &$this ) ); // Do some cleaning up after the loop $this->rewind_users(); } $this->in_the_loop = false; return false; }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |