Extension of WP_User_Query to allow easy looping.
| since | 2.6.0 bbPress (r6330) |
|---|---|
| package | bbPress |
__construct(null|string|array $query = null)
| since | 2.6.0 bbPress (r6330) |
|---|---|
| access | public |
nullstringarrayOptional. The query variables.
have_users() : boolean
Calls the \'loop_end' action when the loop is complete.
| since | 2.6.0 bbPress (r6330) |
|---|---|
| access | public |
booleanTrue if users are available, false if end of loop.next_user() : \WP_User
| since | 2.6.0 bbPress (r6330) |
|---|---|
| access | public |
\WP_UserNext user.rewind_users()
| since | 2.6.0 bbPress (r6330) |
|---|---|
| access | public |
the_user()
Retrieves the next user, sets up the user, sets the 'in the loop' property to true.
| since | 2.6.0 bbPress (r6330) |
|---|---|
| access | public |
| global | WP_User $user |
$current_user : integer
-1| since | 2.6.0 bbPress (r6330) |
|---|---|
| access | public |
$in_the_loop : boolean
false| since | 2.6.0 bbPress (r6330) |
|---|---|
| access | public |
$user : \WP_User
| since | 2.6.0 bbPress (r6330) |
|---|---|
| access | public |
$user_count : integer
0| since | 2.6.0 bbPress (r6330) |
|---|---|
| access | public |