wpseek.com
WordPress开发者和主题制作者的搜索引擎



get_current_blog_id › WordPress Function

Since3.1.0
已弃用n/a
get_current_blog_id ( 没有参数 )
返回:
  • (int) Site ID.
定义在:
文档:

Retrieves the current site ID.



源码

function get_current_blog_id() {
	global $blog_id;

	return absint( $blog_id );
}