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



get_current_site › WordPress Function

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

Gets 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;
}