Per ricavare l’ID del sito web “corrente”, in un installazione NETWORK di WordPress si può utilizzare la seguente funzione:
get_current_blog_id();
che può essere assegnata ad una normale variabile : $blogID=get_current_blog_id();
Fonti : WordPress, select current multisite blog number wordpress, multisite blog number, id blog multisite wordpress, select current network blog number wordpress, wordpress id sito network, id sito in un network wordpress, id corrente blog wordpress