Gets the network’s site and user counts.
blogs intusers intfunction get_sitestats() {
$stats = array(
'blogs' => get_blog_count(),
'users' => get_user_count(),
);
return $stats;
}
| Version | Description |
|---|---|
| MU (3.0.0) | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_sitestats