WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/get sitestats

This page is marked as incomplete. You can help Codex by expanding it.

Description

Gets the network's blog and user counts.

Usage

<?php get_sitestats() ?>

Parameters

This function does not accept any parameters

Return Value

$stats (array) 
Blog and user count for the network
  • $stats['blogs']
  • $stats['users']

Examples


Notes

  • Uses get_blog count() and get_user_count()
  • Both return the number of active sites and users
  • Note: The count is cached and updated twice daily. This is not a live count.

Change Log

Since: MU

Source File

get_sitestats() is located in wp-includes/ms-functions.php

Related

See also index of Function Reference and index of Template Tags.