get_current_site()
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)
原法典第页的重要说明:
get_current_site() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_current_site/