get_sitestats

The timeline below displays how wordpress function get_sitestats has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.4

/**
 * Multisite WordPress API
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.0.0
 */
/**
 * Gets the network's site and user counts.
 *
 * @since MU (3.0.0)
 *
 * @return int[] {
 *     Site and user count for the network.
 *
 *     @type int $blogs Number of sites on the network.
 *     @type int $users Number of users on the network.
 * }
 */
function get_sitestats()
{
    $stats = array('blogs' => get_blog_count(), 'users' => get_user_count());
    return $stats;
}

WordPress Version: 4.9

/**
 * Multisite WordPress API
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.0.0
 */
/**
 * Gets the network's site and user counts.
 *
 * @since MU (3.0.0)
 *
 * @return array Site and user count for the network.
 */
function get_sitestats()
{
    $stats = array('blogs' => get_blog_count(), 'users' => get_user_count());
    return $stats;
}

WordPress Version: 4.1

/**
 * Multisite WordPress API
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.0.0
 */
/**
 * Gets the network's site and user counts.
 *
 * @since MU 1.0
 *
 * @return array Site and user count for the network.
 */
function get_sitestats()
{
    $stats = array('blogs' => get_blog_count(), 'users' => get_user_count());
    return $stats;
}

WordPress Version: 3.7

/**
 * Multisite WordPress API
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.0.0
 */
/**
 * Gets the network's site and user counts.
 *
 * @since MU 1.0
 * @uses get_blog_count()
 * @uses get_user_count()
 *
 * @return array Site and user count for the network.
 */
function get_sitestats()
{
    $stats = array('blogs' => get_blog_count(), 'users' => get_user_count());
    return $stats;
}