请参阅get_users()
Codex entry.
$users = get_users();
可以向函数传递参数数组,包括:
$args = array(
// Order by username (display name)
// Note: \'login\' is default
\'orderby\' => \'display_name\',
// Order (note: \'ASC\' is default)
\'order\' => \'ASC\'
);
$users = get_users( $args );