network_site_url

SummerySummery

Retrieves the site URL for the current network.

Syntax

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

DescriptionDescription

Returns the site URL with the appropriate protocol, ‘https’ if is_ssl() and ‘http’ otherwise. If $scheme is ‘http’ or ‘https’, is_ssl() is overridden.

ParametersParameters

$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

ReturnReturn

(string) Site URL link with optional path appended.

SourceSource

File: wp-includes/link-template.php


			

ChangelogChangelog

Changelog
Version Description
3.0.0 Introduced.

See alsoSee also

Scroll to Top