The code below can be used to get the URL of the main site in the WordPress Multisite Network:

Leave a reply

Your email address will not be published. Required fields are marked *