wp_home_url()

Twig function of the framework; its result is escaped like any value.

{{ wp_home_url(path = '') }}

The URL of the front page of the site, or of a path below it, as returned by home_url().

<a href="{{ wp_home_url() }}">{{ wp_site_name() }}</a>
<a href="{{ wp_home_url('/contact/') }}">Contact</a>
ParameterTypeDefaultDescription
pathstring''Path relative to the home URL, e.g. /contact/; '' for the home URL itself.

Returns string