How does wordpress know which site to setup (on multisite)? April 15, 2022 by Tarik Billa You can use the get_current_site() function. Ref. : http://codex.wordpress.org/WPMU_Functions/get_current_site