Contents

Presence API docs

Presence API shows who else is working on a WordPress site: who is logged in, which screen they are on, and which posts they have open. Under the hood, everything it knows is a row in one table, wp_presence, and a row counts until it expires.

How presence moves through the systemWriters such as Heartbeat ticks, page loads, relays and agents write and renew rows in the wp_presence table. Readers such as admin screens, the REST API and hooks read the rows that have not expired.write and renewrows not yet expired

Writers
Heartbeat ticks
page loads
relays and agents

wp_presence
one row per
room and client

Readers
admin screens
REST API
hooks

Where to start #

These pages describe the plugin's main branch.

Edit this page on GitHub