Multisite get_home_url(); – Getting URL for current site

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().

Leave a Comment