get_current_blog_id() – Retrieve the current site ID.

You appear to be a bot. Output may be restricted

Description

Retrieve the current site ID.

Usage

$int = get_current_blog_id();

Parameters

Returns

int Site ID.

Source

File name: wordpress/wp-includes/load.php
Lines:

1 to 4 of 4
function get_current_blog_id() {
  global $blog_id;
  return absint( $blog_id );
}
 

 View on GitHub View on Trac