Languages: English • 日本語 (Add your language)
Retrieve the current blog id.
<?php get_current_blog_id() ?>
None.
$blog_id = get_current_blog_id();
Since: 3.1.0
In 3.4, moved from /wp-includes/general-template.php
to /wp-includes/load.php
.
get_current_blog_id() is located in /wp-includes/load.php
.
switch_to_blog(), ms_is_switched(), restore_current_blog(), get_current_blog_id(), wp_get_sites(), get_blog_details()