You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good First IssueIssue particularly suitable to be worked on by new contributors[Area] Admin UIIssues for the admin UI integrations[Type] EnhancementA suggestion for improvement of an existing feature
The admin bar shows the faces of who is online. A site that doesn't want it can't remove it without code.
How
#724 adds the switch and does post locks end to end; copy it. Start once it merges.
Add an entry to wp_presence_get_features() in includes/features.php: key admin-bar, a label and a one-sentence description of what switching it off removes.
In includes/default-filters.php, wrap the hooks below in if ( wp_presence_feature_enabled( 'admin-bar' ) ) { … } with the same "Plugin only" comment the post-locks block has. Leave every file loaded; only the hooks are gated.
Add tests to tests/test-features.php, following test_switching_post_locks_off_leaves_their_hooks_unregistered(): with the switch off none of these hooks are registered, and with it on each is back at its priority.
Mention the switch in the README section for the piece.
Hooks to gate
Hook
Callback
Priority
admin_bar_menu
wp_presence_admin_bar_node
80
admin_enqueue_scripts
wp_presence_admin_bar_assets
10
wp_enqueue_scripts
wp_presence_admin_bar_assets
10
heartbeat_received
wp_presence_admin_bar_heartbeat_received
13
Leave wp_refresh_nonces → wp_presence_refresh_screen_token ungated. It lives in admin-bar.php, but it hands a fresh screen token to presence-ping.js, which every admin page runs whether or not the admin bar shows faces.
How we will know it is done
Unchecking Admin bar on Settings > Presence API removes the piece on the next page load, checking it brings it back, and the suite passes:
Good First IssueIssue particularly suitable to be worked on by new contributors[Area] Admin UIIssues for the admin UI integrations[Type] EnhancementA suggestion for improvement of an existing feature
Activity
guzel commentedon Oct 6, 2026
Hi @josephfusco, I'd like to work on this if it's not taken.