A WordPress-centric search engine for devs and theme authors



get_current_blog_id ›

Since3.1.0
Deprecatedn/a
get_current_blog_id ( No parameters )
Returns:
  • (int) Site ID.
Defined at:
Codex:

Retrieve the current site ID.



Source

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