Repository navigation
Description
Network Admin gets an Online column on Sites, an Online view and column on Users, and a Who's Online network dashboard widget. A network that doesn't want them can't remove them without code.
This one is network-wide UI, so unlike the per-site pieces its switch belongs only on Network Admin > Settings > Presence API. A per-site checkbox would decide network screens by whichever site the request started on.
How
#724 adds the switch and does post locks end to end. Start once it merges.
- Let an entry in
wp_presence_get_features()say it is network-only (for example'network' => true), sowp_presence_register_feature_settings()adds its row to the network page alone andwp_presence_feature_enabled()reads only the network option for it. - Add the
network-adminentry. - In
includes/ms-default-filters.php, wrap the hooks below inif ( wp_presence_feature_enabled( 'network-admin' ) ) { … }with the "Plugin only" comment. - Tests in
tests/test-features.php,@group ms-required: the checkbox shows on the network screen and not on the site one, and the hooks come and go with the switch.
Hooks to gate
| Hook | Callback |
|---|---|
wpmu_blogs_columns |
wp_presence_register_network_sites_column |
manage_sites_custom_column |
wp_presence_render_network_sites_column |
admin_enqueue_scripts |
wp_presence_enqueue_network_sites_assets |
network_admin_notices |
wp_presence_network_aggregation_notice |
views_users-network |
wp_presence_network_users_views |
users_list_table_query_args |
wp_presence_filter_network_online_users |
wpmu_users_columns |
wp_presence_register_network_users_column |
manage_users-network_custom_column |
wp_presence_render_network_users_column |
wp_network_dashboard_setup |
WP_Presence_Network_Widget_Whos_Online::register |
heartbeat_received |
WP_Presence_Network_Widget_Whos_Online::heartbeat_received |
Leave the network summary hooks alone (wp_presence_admin_room_changed → push and flush, wp_delete_site, the expired-rows cleanup, remove_user_from_blog → wp_presence_on_user_removed). Building the summary already has its own switch, wp_presence_network_aggregation_enabled. Whether switching the screens off should also stop building it is a call to make in the PR.
avatar-stack.php serves the sites column and the network widget, so it stays loaded like every other file.
How we will know it is done
npm run test:multisitePart of #710.
Activity
i-am-chitti commentedon Oct 6, 2026
Hi @josephfusco, I'll pick this one.