network_home_url


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

Parameters:
  • (string) $path Optional. Path relative to the home URL. Default empty.
  • (string) $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:

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.

Related Functions

network_site_url, get_home_url, network_admin_url, home_url, network_step2

Top Google Results

User discussions

wpseek mobile