WordPress.org

Codex

WPMU Functions/get blog count

Contents

Description

Returns the number of active blogs on this WPMU install or specific site.

Parameters

$id
(integer) (required) Not used anymore.
Default: None

Return values

(integer) 
The number of active blogs hosted by this WPMU install or specific site.

Usage

<?php get_blog_count() ?>

Examples

<?php
  $blog_count 
get_blog_count();
  echo 
'There are currently '.$blog_count.' blogs running on this server.';
?>

Notes

Uses update_site_option() and get_site_option() to set and return value.