Advertisements

home_url

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

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: