Definition:
function home_url( $path = '', $scheme = null ) {}
Retrieve the home url for the current site.
Returns the ‘home’ option with the appropriate protocol, ‘https’ if is_ssl() and ‘http’ otherwise. If $scheme is ‘http’ or ‘https’, is_ssl() is overridden.
Parameters
- string $path: (optional) Path relative to the home url.
- string $scheme: (optional) Scheme to give the home url context. Currently ‘http’, ‘https’.
Return values
returns:Home url link with optional path appended.
Source code
function home_url( $path = '', $scheme = null ) { return get_home_url(null, $path, $scheme); }
1953
No comments yet... Be the first to leave a reply!