get_current_blog_id

函数


get_current_blog_id ( No parameters )
返回值
  • (int) Site ID.
定义位置
  • wp-includes/load.php
    , line 1285
引入
3.1.0
弃用

Retrieve the current site ID.

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