
內容簡介
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 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
Who’s Online dashboard widget with idle detection
Active Posts dashboard widget grouped by post
Admin bar indicator showing who’s online, grouped by who’s on this page
Editors column in the post list
Online filter in the Users list
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.
