get_sitestats()
Gets the network's site and user counts.
No Hooks.
Returns
Int[]. Site and user count for the network.
Usage
get_sitestats();
Changelog
| Since 3.0.0 | Introduced. |
get_sitestats() get sitestats code WP 7.0
function get_sitestats() {
$stats = array(
'blogs' => get_blog_count(),
'users' => get_user_count(),
);
return $stats;
}