I would recommend you use home_url()
to get the URL to the front page of the currently viewed site.
If you want to get the main site URL (the network home), use network_home_url()
.
I would recommend you use home_url()
to get the URL to the front page of the currently viewed site.
If you want to get the main site URL (the network home), use network_home_url()
.