函数原型
get_current_blog_id(): int
函数描述
Retrieve the current site ID.
是否弃用
未弃用
函数参数
无
函数返回值
函数位置
File: wp-includes/load.php.
函数源码
function get_current_blog_id() {
global $blog_id;
return absint( $blog_id );
}
源码链接
变更日志
Changelog| Version | Description |
|---|
| 3.1.0 | Introduced. |