Uses
Uses | Description |
---|---|
wp-includes/ms-functions.php: get_blog_count() | The number of active sites on your installation. |
wp-includes/ms-functions.php: get_user_count() | The number of active users in your installation. |
Gets the network’s site and user counts.
(int[]) Site and user count for the network.
File: wp-includes/ms-functions.php
function get_sitestats() { $stats = array( 'blogs' => get_blog_count(), 'users' => get_user_count(), ); return $stats; }
Version | Description |
---|---|
MU (3.0.0) | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_sitestats