wordpress / latest / functions / get_current_blog_id.html

get_current_blog_id(): int

Retrieve the current site ID.

Return

int Site ID.

Source

File: wp-includes/load.php. View all references

function get_current_blog_id() {
	global $blog_id;
	return absint( $blog_id );
}

Uses

Uses Description

Used By

Used By Description

Changelog

Version Description
3.1.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_current_blog_id