WP-UserOnline
Enable you to display how many users are online on your WordPress site with detailed statistics.
Escolha segura
Yes — WP-UserOnline is a safe, well-maintained plugin to use in 2026. It runs on 10K+ sites, is rated 4.6/5 and was last updated 3 months ago, and scores 88/100 on our health check.
- Comprovado em escala em sites ativos de mais de 10 mil
- Amado pelos usuários — 4.6/5 de 38 avaliações
- Testado com as últimas WordPress (7.1)
- Precisa de PHP 8.2 ou mais recente
Como ele se acumula?
Lado a lado em instalações, atualizações, avaliações e suporteDownloads diários
Os picos de download geralmente seguem uma nova versão — cada site que atualiza automaticamente é um download.
Rankings
Where WP-UserOnline stands todayWordPress.org Classificações de pesquisa
Posição ao vivo na pesquisa de plugins, top 100| Palavra chave | Posição |
|---|---|
| online | #85 |
| useronline | #1 |
| usersonline | #1 |
| widget | >100 |
| wp-useronline | #1 |
Adoção da versão
Compartilhamento de sites ativos por lançamento.
Divisão de classificação
★★★★★★★★★★ 4.6 from 38 reviews
About WP-UserOnline
From the official readme · v4.0.2Descrição
WP-UserOnline shows how many people are on your site right now, and where they are. Members are named, guests and search bots are counted, and the whole thing refreshes itself in the background without a page reload.
Recursos
- A counter, a “who is browsing this page” line and a “who is browsing the site” line, each usable on its own.
- A full users online page, listing every visitor with the page they are on, where they came from and when they arrived.
- A sidebar widget offering any of those five combinations.
- Every string is a template you can edit, so the wording is yours rather than the plugin’s.
- Around three hundred search bots recognised by user agent, and a filter for adding your own.
- One admin screen with three tabs — who is online now, the settings, the templates — plus a line in the Dashboard’s At a Glance panel.
- A section on the WP-Stats page when that plugin is installed.
Doações
Passei a maior parte do meu tempo livre criando, atualizando, mantendo e apoiando esses plugins, se você realmente ama meus plugins e pode me poupar alguns dólares, eu realmente aprecio isso. Se não, sinta-se à vontade para usá-lo sem qualquer obrigação.
Uso
The simplest way is the widget. Go to WP-Admin -> Appearance -> Widgets, add the UserOnline widget to a sidebar, and pick which of the five statistics types it should show.
A classic theme can call the template tags directly instead, anywhere in sidebar.php, header.php or a template part:
<?php if ( function_exists( 'users_online' ) ) : ?>
<p>Users online: <span id="useronline-count"><?php users_online(); ?></span></p>
<?php endif; ?>
The element ids matter: useronline-count, useronline-browsing-site, useronline-browsing-page and useronline-details are what the refresh script looks for. A figure printed outside one of them is correct when the page loads and then stays where it is.
To give visitors a page of their own listing everyone online, create a page and put the shortcode in it:
[page_useronline]
Everything the plugin has is at WP-Admin -> WP-UserOnline, on three tabs: Users Online for who is here right now, Settings, and Templates for the wording of everything the plugin prints.
Showing Users Online In A Block
One block is available in the editor, under Widgets:
- Users Online — everyone on the site right now, grouped into members, guests and bots, with the page each of them is reading and the most-ever-online record underneath. The same listing
[page_useronline]produces.
It renders on the server, so the preview in the editor is the real listing rather than an approximation, and the page updates itself while a visitor is reading it exactly as the shortcode’s does. Only one goes in a post: the listing carries its own useronline-details element and the refresh script finds it by that name.
Rendering it records nobody. Previewing the block in the editor does not add you to the figures you are previewing, however many times the preview refreshes — visitors are recorded when a page is loaded, not when the listing is drawn.
The shortcode still works and is not going anywhere. [page_useronline] behaves exactly as it always has, and a page already containing it needs no change. The block calls the same code the shortcode calls, so the two render identically — use whichever suits the page.
Wp-cli
wp useronline list
wp useronline list --format=count
wp useronline count
The command reads and never writes. The table maintains itself — every visit purges rows that have timed out — and the admin screen offers no destructive action, so neither does the command.
Descanse API
GET /wp-json/useronline/v1/count
POST /wp-json/useronline/v1/visit
count reports how many are online now, the record and its date, and records nobody — so a monitoring script polling it does not appear in the figure it is reading. `visit` is the heartbeat: it records the caller and answers with one of the four views, given a `mode` of `count`, `browsing-site`, `browsing-page` or `details`, plus the `page_url` they are on.
Neither route takes a nonce, and that is deliberate. A nonce cannot authenticate a logged-out visitor: anonymous nonces come from one session every such caller shares, so requiring one would prove nothing while breaking every visitor who is not signed in. A page_url that does not resolve to this site is ignored, and a heartbeat writes nothing but the caller’s own row.
Estas rotas são uma adição. A ação admin-ajax.php wp_useronline permanece inalterada e ainda é suportada.
Instalação
- Install and activate the plugin. Counting starts immediately.
- Show it where you want it: add the UserOnline widget to a sidebar, add the block, put
[page_useronline]on a page, or call the template tags from your theme. - Go to
WP-Admin -> WP-UserOnlinefor the timeout, the naming and the rest of the options.
Log de Changes
Requires WordPress 6.8 and PHP 8.2. Every filter is renamed, with no deprecation shims. Code hooking an old name stops running, silently: useronline_bots is now wp_useronline_bots useronline_buckets is now wp_useronline_buckets useronline_custom_template is now wp_useronline_custom_template useronline_page is now wp_useronline_page useronline_display_user is now wp_useronline_display_user useronline_trust_proxy is now wp_useronline_trust_proxy USERONLINE_TRUST_PROXY is now WP_USERONLINE_TRUST_PROXY. Left unrenamed in wp-config.php, the plugin stops trusting the proxy and every visitor reports the same IP address. See the FAQ. One screen, three tabs, under a WP-UserOnline menu of its own. index.php?page=useronline and options-general.php?page=useronline-settings are both gone. Everything is at admin.php?page=wp-useronline, which opens on Users Online; the settings are at &tab=settings and the templates at &tab=templates. Bookmarks and any code linking to the old addresses need updating. Every tab now requires manage_options. Users Online previously needed only list_users, which included editors on many sites. To restore that: add_filter( 'wp_useronline_capability', function ( $capability, $context ) { return 'useronline' === $context ? 'list_users' : $capability; }, 10, 2 ); Settings migrate on the first admin page load. useronline becomes wp_useronline_options, useronline_most becomes wp_useronline_most, and the two upgrade markers move into wp_useronline_version. Code reading the old rows directly will find them gone. wp_useronline_most is no longer autoloaded. Update all seven WP-Stats plugins together. WP-Stats, WP-UserOnline, WP-Polls, WP-PostRatings, WP-EMail, WP-PostViews and WP-DownloadManager shared one unprefixed stats_display row. Each now keeps its own copy and deletes the shared row once it has read it, so whichever you update first takes it from the rest. A missing row means "show", so a block you had switched off may reappear — switch it off again under WP-UserOnline -> Settings -> WP-Stats, on the Settings tab. Classes are renamed to WP_UserOnline_*: UserOnline is WP_UserOnline, UserOnline_Template is WP_UserOnline_Template, and so on. The template tags — users_online(), get_users_online(), get_users_browsing_site(), get_most_users_online() and the rest — the [page_useronline] shortcode, and the useronline-count, useronline-browsing-site, useronline-browsing-page and useronline-details element ids are unchanged. Custom JavaScript. useronline.js is now js/wp-useronline.js, its localised object is wpUserOnlineL10n rather than useronlineL10n, and the admin-ajax action is wp_useronline rather than useronline.
4.0.2
-
NEW: A
wp_useronline_needs_scriptsfilter, for code that renders the counters where WP-UserOnline cannot see it coming. The refresh script loads only when something on the page has rendered a counter or a listing, and it is enqueued fromwp_footer— the one pass. Markup fetched overadmin-ajax.phpor the REST API into a page that shows none of its own reaches neither, so its numbers never refreshed. Returning true from the filter is how such a page asks for the script. -
CHANGED:
WP_UserOnline_Template::needs_script()andrequest_script()are nowneeds_scripts()andrequest_scripts(), plural, matching every other name the plugin uses for its front end assets. Neither was ever documented, but they are public, so a theme or plugin calling one by name needs thes.
4.0.1
- NEW: A Settings link on the plugin’s row of the Plugins screen, opening the Users Online screen’s Settings tab.
- FIXED: The address of a visitor arriving over IPv6 linked to a lookup that cannot read one. Every such visitor’s link answered “Malformed Domain or IP”, which is most of the detailed listing on a site whose host has IPv6 switched on. The lookups now go to ipinfo.io, which answers for IPv4 and IPv6 alike
- NEW:
wp_useronline_ip_lookup_urlfilters where an address is looked up, so a site can send it somewhere else — or return an empty string and keep the address as plain text with no link at all. See the FAQ - FIXED: Every page view read the whole table twice — dropping the visitor’s previous row and counting what their address holds both filter on columns the table’s only key does not start with. Keys on
user_ipanduser_idcover both now, and an existing install gains them on upgrade, so the per-request bookkeeping stops scanning the table as a busy site’s list grows
4.0.0
- FIXED: A recorded location could be a protocol-relative URL, which is an absolute one wearing a path’s clothes.
https://example.com//evil.com/parses with this site’s host, passed the host check, was stored as//evil.com/, and came out ofesc_url()untouched — so the public listing carried a link to somebody else’s site. Leading slashes now collapse to one, on the submitted URL and onREQUEST_URIalike - FIXED: The listing withheld the location of a visitor who was in the dashboard, but published their referrer from inside the same branch without ever looking at it. Anyone who clicked a front-end link from an admin screen therefore published the whole admin URL — screen, post ID and
_wpnonce— to anonymous readers, because a same-origin navigation carries the full URL under WordPress’s referrer policy. The referrer is now tested in its own right, and both tests compare against the site’s own admin path rather than the literal stringwp-admin, which never matched on a site that had moved it - FIXED: A single address could fill the table and permanently inflate “most users ever online” — a figure with no reset anywhere — by varying its user agent on each request, which defeated the de-duplication and left one row per second standing for the whole timeout. At most twenty rows per address are kept now;
wp_useronline_max_per_addressraises the ceiling, or zero removes it - FIXED: The refresh endpoint authenticates by cookie, so a cross-site form post ran it as whoever was signed in and replaced their row with a page and title of the attacker’s choosing, published under their name. A signed-in caller now needs a nonce; a logged-out one still does not, because an anonymous nonce is shared by every anonymous visitor and proves nothing
- NEW: A
wp useronlineWP-CLI command —listandcount. It reads and never writes. - NEW: A
useronline/v1REST API for reading the counts and for the visitor heartbeat. Theadmin-ajax.phpwp_useronlineaction is unchanged and still supported. - NEW: A Users Online block, under Widgets in the editor, showing the same listing as
[page_useronline]. The shortcode is unchanged and still supported; the block is an addition beside it, calls the same code, and records nobody when it renders. - Quebra: Requer WordPress 6.8 e PHP 8.2.
- BREAKING: Every filter the plugin fires is renamed and the old names are dropped, with no deprecation shims:
useronline_bots,useronline_buckets,useronline_custom_template,useronline_page,useronline_display_useranduseronline_trust_proxyall becomewp_useronline_*. This voids the promise made in the 3.0.0 changelog that the filters were unchanged, and is why this release is 4.0.0 rather than 3.0.1. - BREAKING:
USERONLINE_TRUST_PROXYis nowWP_USERONLINE_TRUST_PROXY. A site still defining the old name silently stops trusting its proxy and starts recording the proxy’s address for every visitor. See the FAQ. - BREAKING: The plugin has one screen, at
admin.php?page=wp-useronlineunder a top-level WP-UserOnline menu, with three tabs: Users Online, Settings and Templates. The report used to be under Dashboard and the settings under Settings. - BREAKING: Every tab now requires
manage_options. The users online listing previously needed onlylist_users. The newwp_useronline_capabilityfilter puts it back, for that tab alone. - BREAKING: The option rows are renamed.
useronlinebecomeswp_useronline_optionsanduseronline_mostbecomeswp_useronline_most, which is no longer autoloaded. Your settings are migrated automatically on the first load after the update. - BREAKING: The shared, unprefixed
stats_displayoption row is no longer read. WP-Stats integration is now a setting of this plugin’s own, and WP-Stats asks each plugin for its section through thewp_stats_sectionsfilter rather than reading anybody’s options. Update all seven WP-Stats-aware plugins together; see the Upgrade Notice. - BREAKING: Every class is renamed to
WP_UserOnline_*.UserOnline,UserOnline_Template,UserOnline_Optionsand the rest no longer exist under those names. - BREAKING: The refresh script is at
js/wp-useronline.jsrather thanuseronline.js, its localised object iswpUserOnlineL10nrather thanuseronlineL10n, and the admin-ajax action it posts iswp_useronlinerather thanuseronline. - NEW: The upgrade markers live in their own
wp_useronline_versionoption row, holding exactlypluginanddb, and are written together in one update at the end of the upgrade. - NEW: WP-Stats integration is a setting of the plugin’s own, on the Settings tab under WP-Stats, instead of a checkbox added to the WP-Stats options page.
- NEW:
wp_useronline_capabilityfilters the capability each tab requires, with a context saying which one is asking. The page itself is registered under the report’s capability and every tab checks its own, so widening the listing cannot hand over the settings form. - NEW: The templates are on a Templates tab of their own rather than below the settings. Both tabs post one setting into one option row, and the sanitiser merges what a tab submitted over what is stored, so saving one cannot blank the other.
- NEW: The Restore Defaults behaviour is a proper enqueued script,
js/wp-useronline-admin.js, rather than markup printed inside the page. - NEW: The JavaScript is covered by vitest and jsdom, and the PHP suite runs on the network as well as on a single site.
- CHANGED:
WP_UserOnline_Installowns the table, the migration and the markers, so install and uninstall sit beside each other and neither can drift. - FIXED: The upgrade markers no longer live inside the settings array. They were kept under a reserved
versionskey that the settings form never posted, so every save had to rescue them from the stored value by hand — which is the arrangement behind the 3.0.0 bug where the marker could not be saved at all once the settings screen had been loaded. They have a row of their own now, and the settings sanitiser has no business with them. - FIXED: The settings screen no longer emits an inline
styleattribute or an inline<script>block. - FIXED: The WP-Stats checkbox posts an explicit off. An unticked box posts nothing at all, and the sanitiser keeps whatever a tab did not submit, so without it the section could be switched on and never off again.
- FIXED: The periodic refresh no longer nests the
useronline-detailscontainer inside itself. The detailed report is answered as a whole container, and the refresh wrote that answer inside the container it was already in — so a page left open gained another copy of the same element id every timeout, growing a level deeper each time. Nothing errored and the figures kept updating, but the markup was invalid and any theme CSS or JavaScript keyed to#useronline-detailswas looking at a different element after the first refresh. The refresh replaces that container now instead of filling it. - NOTE: The template tags, the
[page_useronline]shortcode and theuseronline-count,useronline-browsing-site,useronline-browsing-pageanduseronline-detailselement ids are unchanged. Everything else that was public has moved; see the Upgrade Notice. - NOTE: The “on”, “url” and “referral” labels in the detailed listing carry translator context now, because a single word out of context is not enough to translate from. Those three msgids changed, so existing translations of them fall back to English until they are retranslated
Para desenvolvedores
Este é o seu plugin? Mostre os números.
Adicione um crachá ao vivo ao seu site, Documentos ou Readme do GitHub. Ele é atualizado por conta própria - nenhuma conta necessária.
Best WP-UserOnline alternatives
All online plugins →FAQ
WP-UserOnline: quick answers
Respostas diretas, extraídas de dados ao vivo WordPress.org.
Fonte: WordPress.org
Is WP-UserOnline free?
Yes. WP-UserOnline is free to download and use from the official WordPress.org plugin directory.
Is WP-UserOnline safe to use in 2026?
Yes — WP-UserOnline is a safe, well-maintained plugin to use in 2026. It runs on 10K+ sites, is rated 4.6/5 and was last updated 3 months ago, and scores 88/100 on our health check.
How many websites use WP-UserOnline?
WP-UserOnline is active on 10K+ WordPress websites and has been downloaded 990,600 times since it launched in January 2006. It was downloaded 2,185 times in the last 30 days.
Does WP-UserOnline work with WordPress 7.1?
Yes. The developer has tested WP-UserOnline up to WordPress 7.1.5, the latest release. It requires WordPress 6.8 or newer.
What PHP version does WP-UserOnline need?
WP-UserOnline requires PHP 8.2 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was WP-UserOnline last updated?
The latest version, 4.0.2, was released on September 1, 2026 (3 months ago).
Who makes WP-UserOnline?
WP-UserOnline is developed and maintained by Lester Chan.
What are the best alternatives to WP-UserOnline?
The most popular alternatives to WP-UserOnline are PayHere Payment Gateway (2K+ installs), WC Booster (600+ installs) and StreamWeasels Online Status… (400+ installs).
Alimentado por PageForge
Um modelo e uma planilha. Uma página real para cada pesquisa.
PageForge Transforma cada linha de um CSV em uma página WordPress com seu próprio título, URL, SEO campos e esquema, construído no layout que você já desenhou. Gratuito em WordPress.org.
- CSV e XLSX, mais Google Sheets em Profissional e Empresarial
- Seu próprio título, URL, SEO campos e esquema para cada página
- Funciona com o editor de blocos, Elementor, Divi e Avada
- Gratuito em WordPress.org, sem cartão de crédito




