WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/get users of blog


This function has been deprecated since Version 3.1. That means it has been replaced by a new function or is no longer supported, and may be removed from future versions. All code that uses this function should be converted to use its replacement if one exists. See also wp-includes/deprecated.php. Use get_users instead.

Description

Returns an array filled with information about the blog's users.

Usage

 <?php $blogusers get_users_of_blog(); ?> 

Example

// Get information about this blog's users into an array.
$blogusers = get_users_of_blog();
// Iterate over the array and retrieve that users' basic information.
foreach ($blogusers as $usr) {
    print "{$usr->user_login} has user ID number {$usr->ID}.";
}

Parameters

None.

Returns

(array) 
Array of users. The elements of the array are objects whose member properties correspond with information about a user.

Changelog

Source Code

get_users_of_blog() is located in wp-includes/deprecated.php.

Related

Blog User Functions: add_user_to_blog(), add_new_user_to_blog(), remove_user_from_blog(), is_user_member_of_blog()

See also index of Function Reference and index of Template Tags.