We can retrieve list of all sites in WordPress Multisite Network by using get_sites() function.
This function will return the data in array format. Please check the sample code below.

$sites = get_sites();

If you have any doubt, Please comment here.

Leave a Reply

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