get_users
has an argument that should let you select a particular role.
$all_users = get_users(array('role'=>'author'));
Should be all you need. $all_users
should be only “Authors”.
get_users
has an argument that should let you select a particular role.
$all_users = get_users(array('role'=>'author'));
Should be all you need. $all_users
should be only “Authors”.