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



get_current_site ›

Since3.0.0
已弃用n/a
get_current_site ( 没有参数 )
查看:
返回:
  • (WP_Network)
定义在:
文档:
Change Log:
  • MU

Get the current network.

Returns an object containing the 'id', 'domain', 'path', and 'site_name' properties of the network being viewed.



源码

function get_current_site() {
	global $current_site;
	return $current_site;
}