首页 WordPress函数大全 network_site_url()

network_site_url()

2020-05-02 / 2699阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

network_site_url( string $path = '', string $scheme = null )

检索当前网络的站点URL。

描述

返回带有适当协议的站点URL,如果is_ssl()则返回“ https”,否则返回“ http”。如果$ scheme是'http'或'https',则is_ssl()被覆盖。

See also See also

  • set_url_scheme()

Top ↑

参数

$path

(string)
(Optional)
Path relative to the site URL.

Default value: ''

$scheme

(string)
(Optional)
Scheme to give the site URL context. Accepts 'http', 'https', or 'relative'.

Default value: null

返回

(string) Site URL link with optional path appended.

大家谈论
    我的见解