WordPresshome_url()


Syntax

  • home_url( $path, $scheme );

Parameters

ParameterDetails
$path(String,Optional) To adding more segment after the home url.
$scheme(String,Optional) Scheme to give the home url context. Accepts 'http', 'https', 'relative', 'rest', or null.