Codex

Function Reference/get current blog id

Contents

Description

Retrieve the current blog id.

Usage

<?php get_current_blog_id() ?>

Parameters

None.

Return Values

(integer) 
Blog id

Examples

Notes

  • Uses global: (integer) $blog_id The Blog ID.

Change Log

Since: 3.1.0

Source File

get_current_blog_id() is located in /wp-includes/general-template.php.

Related

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