network_site_url


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

Parameters:
  • (string) path Optional. Path relative to the site URL. Default empty.
  • (string|null) scheme Optional. Scheme to give the site URL context. Accepts 'http', 'https', or 'relative'. Default null.
See:
Returns:
  • (string) Site URL link with optional path appended.
Defined at:

Description

Retrieves the site URL for the current network.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.

Related Functions

network_home_url, get_site_url, network_admin_url, network_step1, network_step2

Top Google Results

User discussions

wpseek mobile