get_current_site()
get_current_site() 获取当前网络。Get the current network. 目录锚点…
get_current_site()
获取当前网络。
Get the current network.
目录锚点:#说明#返回#源码#笔记
说明(Description)
另见函数 wpmu_current_site()
返回(Return)
(WP_网络)
源码(Source)
/**
* Get the current site info.
*
* Returns an object containing the 'id', 'domain', 'path', and 'site_name'
* properties of the site being viewed.
*
* @see wpmu_current_site()
*
* @since MU
*
* @global object $current_site
*
* @return object
*/
function get_current_site() {
global $current_site;
return $current_site;
}
/**
* Get the current site info.
*
* Returns an object containing the 'id', 'domain', 'path', and 'site_name'
* properties of the site being viewed.
*
* @see wpmu_current_site()
*
* @since MU
*
* @global object $current_site
*
* @return object
*/
function get_current_site() {
global $current_site;
return $current_site;
}| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| MU (3.0.0) | wp-includes/ms-functions.php:1776 | 0 | 0 |
笔记(Notes)
原法典第页的重要说明:
类别:WordPress 函数手册、
本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。

还没有任何评论,赶紧来占个楼吧!