首页 WordPress函数大全 network_home_url()

network_home_url()

2020-05-02 / 2526阅 / 悠然

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

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

检索当前网络的起始URL。

描述

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

参数

$path

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

Default value: ''

$scheme

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

Default value: null

返回

(string) Home URL link with optional path appended.

大家谈论
    我的见解