Function: get_users

get_users( array $args )

Retrieve list of users matching criteria.

Parameters

Name Type(s) Default Value Description
$args array array()

Optional. Arguments to retrieve users. See WP_User_Query::prepare_query(). for more information on accepted arguments.

Returns

array

List of users.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.