检索当前网络的站点URL。
network_site_url( string $path = ”, string $scheme = null )
说明(Description)
另见函数 set_url_scheme()
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$path | (string) | 可选 | 相对于网站URL的路径。 |
$scheme | (string) | 可选 | 提供网站URL上下文的方案。接受“http”、“https”或“relative”。 |
返回(Return)
(string)附加了可选路径的站点URL链接。