Description
Presence API gives WordPress a system-wide awareness layer. It tracks which users are logged in, which admin screen they are on, and which posts they are editing.
Data flows through the Heartbeat API and is stored in a dedicated wp_presence table with a 150-second TTL. No writes to wp_postmeta means no post-cache invalidation on every heartbeat.
On a multisite network, Network Admin gets its own view of the same data: a Who’s Online dashboard widget listing the busiest sites and who is on each, an Online column in the Sites list, and an Online view, filter, and column in the Users list. These require the manage_network capability.
Features
- Admin bar indicator showing who’s online and who’s on this page
- Active Posts dashboard widget grouped by post
- Editors column in the post list
- A notice on synced patterns in the block editor while someone else is editing them
- Online filter in the Users list
- A notice when someone else saves the screen you have open
- Post locks kept in the presence table instead of post meta, so holding a lock no longer makes cached post queries stale
- A switch for each feature on Settings > Presence API
- AI agents labelled in the admin bar, the Active Posts widget, and the Editors column, once a plugin such as Agent Users marks them
For Developers
PHP functions, REST endpoints, WP-CLI commands, filters, and room conventions are documented in the GitHub repository.
Background
A feature plugin sponsored by the WordPress Core team, exploring what system-wide presence could look like for a future WordPress release. Follow development on make.wordpress.org/core with the tag #presence-api.
Screenshots






Installation
- In your WordPress admin, go to Plugins Add New Plugin and search for “Presence API”, then click Install Now.
- Activate through the Plugins menu.
Or install manually:
- Download the zip and upload the
presence-apifolder to/wp-content/plugins/. - Activate through the Plugins menu.
FAQ
-
Does it work on multisite?
-
Yes. Network-activate it and Network Admin gains a Who’s Online dashboard widget listing the busiest sites and who is on each, an Online column in the Sites list, and an Online view, filter, and column in the Users list. Every site keeps its own widgets and lists, counting only the people on that site.
-
Who can see network-wide presence?
-
Anyone with the
manage_networkcapability, which on a default network means super admins. Thewp_presence_network_capabilityfilter changes what is required. -
Can a site stop recording presence?
-
Yes. Clear the Presence checkbox on Settings > General, or run
wp presence recording set off. Every screen empties as the rows already stored expire. On multisite, Network Admin > Settings has the same checkbox for every site at once; whichever switch is off decides.For code, the
wp_presence_recording_enabledandwp_presence_network_recording_enabledfilters take the checkboxes as their defaults, so a filter always has the last word.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Presence API” is open source software. The following people have contributed to this plugin.
Contributors-
WordPress.org
-
Joe Fusco
-
Ritvik Bhutani
-
Ashish Verma
-
Deepak Kumar
-
Iqbal Hossain
-
Asllan Maciel
-
Aldo Rizona
-
Jignesh Bhavani
-
stfulldev
-
Konstantin Obenland
-
mori-ikuri
-
Ishita
-
Aminul Islam
-
Muneeb Ashraf
-
John Parris
-
Zahid Ul Islam
-
Guzel Mitroshina
-
Jared Rethman
-
jooahmed
-
Noruzzaman
-
Huzaifa Al Mesbah
-
Rejaul Alom Khan
-
Kamrul Hasan
Translate “Presence API” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
Only the most recent releases are listed here. For the full history, see https://github.com/WordPress/presence-api/blob/main/CHANGELOG.md
0.18.2
- Make the presence screens readable with only a keyboard (#841).
0.18.1
- Show the admin bar presence node on phones and spell out hover-only names on touch (#830).
0.18.0
- Let a reader tell a room changed without reading every row (#791).
- Let core’s copy of a presence function or class win when it already exists (#805).
- Raise a deprecation notice for positional presence arguments (#800).
- Register each switchable piece with the callback that adds its hooks (#814).
- Return WP_Error with specific refusal codes when presence write fails (#792).
- Tell a second browser from a second tab with a per-room session hash (#815).
- Cap the heartbeat ping’s title and screen before storing them (#816).
0.17.0
- Let a network switch off the network admin screens (#788).
- Let a site switch off the Active Posts dashboard widget (#774).
- Show who else is editing a synced pattern on its block (#779).
- Take an $args array in the presence functions (#789).
0.16.1
- Show identicons in the WordPress.org live preview (#782).
