get_users( array $args = array() )
Retrieve list of users matching criteria.
Description
See also
Parameters
- $args
-
(Optional) Arguments to retrieve users. See WP_User_Query::prepare_query(). for more information on accepted arguments.
Default value: array()
Return
(array) List of users.
Source
File: wp-includes/user.php
function get_users( $args = array() ) {
$args = wp_parse_args( $args );
$args['count_total'] = false;
$user_search = new WP_User_Query($args);
return (array) $user_search->get_results();
}
Changelog
Version | Description |
---|---|
WP-3.1.0 | Introduced. |