WordPress.org

Codex

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

Function Reference/get blog count

Description

Get the number of active sites on your installation.

Note: The count is cached and updated twice daily. This is not a live count.

Usage

<?php $blogs = get_blog_count( $id ) ?>

Parameters

$id
(integer) (optional) A site_id
Default: 0

Return Values

integer 
The number of active sites

Examples

Notes

Change Log

Since: 1.0

Source File

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

Related