| 开发者 |
mehdijabin
mansourjabin |
|---|---|
| 更新时间 | 2026年9月26日 07:18 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
orderby support so any loop can be sorted by what people actually open.
Counting that survives a page cache
sendBeacon(), so cached pages are counted too.fetch() instead of sendBeacon().post-views CSS class can be emitted for themes that were styled for an older counter.WP_Query (and the REST post collection) can order by 'orderby' => 'lumovipu_views':
lumovipu_viewsamp-pixel[lumovipu_views id="" period="" force="0"] — the count for one item[lumovipu_top count="5" types="post,product" period="30d"] — a popular list[lumovipu_site period="total"] — the whole-site totaltotal, today, week, month, year, 7d, 30d, plus an exact day (20260919) or year (2026).
A dashboard that reads like a pulse
Today, this week, this month and all time. Which items are on top and what share each one takes. A device split, and a referrer split (internal, direct, other). This is deliberately not a full analytics suite: it is the pulse of your content and your store.
Admin extras: a sortable Views column on list screens, an optional month-to-month trend on that column, a date-range export, a Views item in the toolbar on single pages, a WordPress dashboard widget, and an option that lets only administrators edit totals.
Exports and digest emails
On the Reports tab, export all time, 7 days, 30 days, a month or a year as CSV or XML. Schedule a summary daily, weekly or monthly through wp_mail(), with a minimum-views threshold, a top-N size, trend lines and spike signals. Send a test mail first to confirm it arrives before you turn the schedule on.
Privacy by design
post_views_count / views.
Analyse first to see exactly what would change, then import with the strategy you want: Add to existing, Replace, Skip existing, Keep higher or Fill empty only.
If Post Views Counter is still active, Tools warns that two counters will double count. Compatibility helpers (pvc_get_post_views(), pvc_post_views(), pvc_most_viewed_posts(), pvc_get_most_viewed_posts(), pvc_update_post_views(), pvc_view_post() and the [post-views] shortcode) load only once the old plugin is gone — so a theme that calls them keeps working, and nothing collides while both are installed.
Health tools: flush the write buffer on demand, recalculate one item's total from its daily rows, clear a single item, or clear every stored total.
About Boost, stated plainly
The Boost tab lets an administrator add to an all-time total so an item sits higher in popular lists and sorted queries. It changes list position. It does not invent traffic, it is not a visitor log, and it should not be presented as visits that happened. The plugin says so in its own interface.
For developers
Template tags: lumovipu_get_views(), lumovipu_render_views(), lumovipu_get_top(), lumovipu_render_top(), lumovipu_hit(), lumovipu_set_total().
REST routes: POST|GET /wp-json/lumo-view-pulse/v1/hit (token bound to the object, same-origin checked, rate limited) and GET /wp-json/lumo-view-pulse/v1/views (totals for publicly viewable objects only).
Hooks include lumovipu/count/before, lumovipu/count/after, lumovipu/ajax/before_hit, lumovipu/ajax/response, lumovipu/hits/query_args, lumovipu/integrations, lumovipu/capability, lumovipu_default_settings and lumovipu_settings_saved.
Tables: {prefix}lumovipu_hits, {prefix}lumovipu_dims, {prefix}lumovipu_uniques. Uninstall can remove everything, if you switch that on.
Free, GPL, no upsell wall
Every feature described above is in this plugin. No licence key, no signup, no "pro" tab that unlocks the useful half. Documentation lives at LumoWP.
lumo-view-pulse folder to /wp-content/plugins/ and activate it from the Plugins screen.Yes, and that is the reason it exists. In Beacon mode the count happens after the page has loaded, with a short-lived token tied to that specific post, term or archive, so a page served straight from cache is still counted. Server mode is the exception: it only sees uncached PHP requests, and Setup warns you if a known cache plugin is active while it is on.
No. Raw IPs are never written to the plugin tables. Default de-duplication uses a session cookie or browser storage. The optional strict unique window stores a one-way HMAC built with your site salt, not the IP. Reports and exports contain no IP addresses and no visit hashes.
No. There is no third-party script, no remote API and no account. Views are written to tables in your own database and stay there.
It stores no raw IPs and keeps daily aggregates rather than a per-visitor log. You can exclude roles and IP ranges, honour Do Not Track, choose a cookie or cookieless browser storage for de-duplication, and set a retention window after which daily rows are pruned. As always, the final privacy assessment depends on how you configure your own site.
The front-end payload is small and the count happens after load, so it does not block rendering. Totals are aggregated rows rather than a growing visit log. On busy sites with a persistent object cache you can buffer writes and flush them on a schedule.
[lumovipu_views], [lumovipu_top] and [lumovipu_site]. There are also blocks for view count, top content, author views, term views and the site total, plus a most-viewed widget.
Use 'orderby' => 'lumovipu_views' in WP_Query. In Elementor Pro, set the loop Query ID to lumovipu_views. JetEngine Listing Grid and Map Listing, and Lumo Pro Toolkit Listing Grid, Loop Grid, and Loop Carousel, each have an Order by views control in the query settings. Gutenberg Query Loop, GenerateBlocks, Beaver Builder, and Kadence Blocks Pro loops read the same data.
Yes. Products are counted out of the box, the badge can appear on product cards, single product pages and archives, and product lists in wp-admin get a sortable Views column. HPOS compatibility is declared.
Yes. Tools imports from Post Views Counter, WP-PostViews, Statify, the Lumo CDN addon, or the post_views_count / views custom fields, and you can analyse the data before anything is written. Pick Add to existing, Replace, Skip existing, Keep higher or Fill empty only. Deactivate the old counter first so a view is not counted twice.
Yes: echo lumovipu_get_views( get_the_ID() ); for the raw number, or lumovipu_render_views( get_the_ID() ); for the styled badge. lumovipu_get_top() and lumovipu_render_top() return or print a popular list.
It adds to an all-time total so an item ranks higher in popular lists and sorted queries — useful when you are seeding a new site or correcting an import. It moves list position, it does not create visitors, and it should not be presented as real traffic.
Nothing is deleted unless you ask for it. Turn on "Delete data on uninstall" in Settings before removing the plugin if you want the tables and options gone.