
內容簡介
Presence API 為 WordPress 提供了一個系統範圍的使用者狀態追蹤功能。它能夠監控使用者的登入狀態、所處的管理介面以及正在編輯的文章,提升網站的互動性與管理效率。
【主要功能】
• 在線使用者控制台小工具,具備閒置偵測功能
• 按文章分組的活躍文章控制台小工具
• 管理列指示器顯示同頁面其他使用者
• 文章列表中的編輯者欄位
• 使用者列表中的在線過濾器
外掛標籤
開發者團隊
原文外掛簡介
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 60-second TTL. No writes to wp_postmeta means no post-cache invalidation on every heartbeat.
Features
Who’s Online dashboard widget with idle detection
Active Posts dashboard widget grouped by post
Admin bar indicator showing other users on the same page
Editors column in the post list
Online filter in the Users list
Try it
Test in WordPress Playground without installing anything.
Watch the demo on YouTube
For Developers
PHP functions, REST endpoints, WP-CLI commands, filters, and room conventions are documented in the GitHub repository.
Background
An experimental 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.
