Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

student query

// WP_User_Query arguments
$args = array(
	'role'           => 'student',
	'meta_query'     => array(
		array(
			'key'     => 'description',
			'value'   => '""',
			'compare' => '!=',
		),
	),
	'count_total'    => true,
);

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