Contents

Multisite

On a network of sites, Network Admin shows how many people are online on each site.

Network Admin's Who's Online widget, listing the busiest sites and how many people are on each.

How it works #

Network presence collected from each siteWhen a site's admin/online room changes, the site pushes its online users to a network summary table. Network Admin's Who's Online widget, the Sites and Users screens, and the network REST routes read that table.admin/online changedadmin/online changed

Site 1
wp_presence

presence_network_summary

Site 2
wp_presence

Who's Online widget

Sites and Users screens

REST network routes

GET route Returns
/wp-presence/v1/presence/network Sites with users online, busiest first
/wp-presence/v1/presence/network/{blog_id} One site's users online

Turn it off with Network Admin screens on the network's settings page.

Source: network-functions.php ยท schema.php

Check your understanding #

Nobody has arrived or left a site for an hour. Does Network Admin still show who is there?

Yes. The site keeps pushing while nothing changes, often enough that its summary never goes stale.

Edit this page on GitHub