get_sitestats() WordPress Function
The get_sitestats() function is used to retrieve the statistics for a WordPress site. The function accepts two parameters: the first is the blog ID, and the second is a Boolean value that determines whether to include the blog's internal search engine statistics.
get_sitestats() #
Gets the network’s site and user counts.
Return
(int[]) Site and user count for the network.
- 'blogs'
(int) Number of sites on the network. - 'users'
(int) Number of users on the network.
Source
File: wp-includes/ms-functions.php
function get_sitestats() { $stats = array( 'blogs' => get_blog_count(), 'users' => get_user_count(), ); return $stats; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
MU (3.0.0) | Introduced. |