Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I want to get the number of authors.
I saw this and moved (all).
I got number 0 or 1 but real is 3.
What should I do?
This reply was pretty low on the list, on the article you referred to; but it will do the job:
$users_count = count(get_users(array('fields'=>array('ID'),'role'=>'author')));
Originally posted here, buy shanebp
Required, but never shown