Returns the url for a given site where the front end is accessible.

The protocol will be 'https' if is_ssl() evaluates to true; If $scheme is 'http' or 'https', is_ssl() is overridden.


  • Full name: cms_home_url
  • Defined in: cms/core/Shared/Helpers/url.php

Parameters

Parameter Type Description
$path string Optional. Path relative to the home url. Default empty.
$scheme string|null Optional. Scheme to give the home URL context. Accepts
'http', 'https', 'relative', or null. Default null.

Return Value

string

Home url link with optional path appended.