WordPress.org

Ready to get started?Download WordPress

Codex

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

Difference between revisions of "Function Reference/get blog count"

(Created page with "==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 = …")
 
(No difference)

Latest revision as of 16:28, 17 December 2012

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