Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Administrator role users only

Return administrator role users ordered by display name.

// WP_User_Query arguments
$args = array (
	'role'           => 'Administrator',
	'order'          => 'ASC',
	'orderby'        => 'display_name',
);

// The User Query
$user_query = new WP_User_Query( $args );