get_users() – Retrieve list of users matching criteria.

You appear to be a bot. Output may be restricted

Description

Retrieves list of users matching criteria.

Usage

$array = get_users( $args );

Parameters

$args
( array ) optional – Optional. Arguments to retrieve users. See WP_User_Query::prepare_query() for more information on accepted arguments.

Returns

array List of users.

Source

File name: wordpress/wp-includes/user.php
Lines:

1 to 9 of 9
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();
}
 

 View on GitHub View on Trac