network_home_url
network_home_url ( $path = '', $scheme = null )
Parameters:- (string) path Optional. Path relative to the home URL. Default empty.
- (string|null) scheme Optional. Scheme to give the home URL context. Accepts 'http', 'https', or 'relative'. Default null.
Returns:- (string) Home URL link with optional path appended.
Defined at: - Introduced in WordPress: 3.0.0
- Deprecated in WordPress: —
Description
Retrieves the home URL for the current network.Returns the home URL with the appropriate protocol, 'https' is_ssl()
and 'http' otherwise. If `$scheme` is 'http' or 'https', `is_ssl()` is
overridden.