| 开发者 |
lruizcode
bubuku |
|---|---|
| 更新时间 | 2026年9月23日 03:27 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-3.0-or-later |
| 版权网址: | 版权信息 |
Since 1.2.0 the source of truth is the plugin's own database table, but the total is still mirrored to post meta for backwards compatibility. You can keep using get_post_meta( $post_id, 'views', true ); the date of the last view is available as get_post_meta( $post_id, 'views_last', true ).
No. On activation the plugin copies every existing views post meta into its new table in the background, in batches. The date of the last view isn't available for posts that were only counted before 1.2.0 — the count itself carries over intact.
Yes, by default — deleting the plugin removes its tables, options and deduplication data, in line with WordPress.org's guidelines against leaving data behind. You can turn this off from Settings → Post View Count if you'd rather keep your data for a future reinstall.
Yes, since 1.2.0. Go to Settings → Post View Count to choose which content types are counted (only Posts by default, same as before), exclude specific user roles (roles that can already edit content are excluded by default), and optionally exclude known bots and crawlers. Unchecking a content type stops counting new views for it but never deletes the views already recorded.
Yes. Settings → Post View Count has a "Delete all data now" button that clears every recorded view, with a confirmation prompt before it runs.
The lightweight counter is deferred and sends its request only after the page has accumulated five visible seconds, so it stays outside the initial rendering path. As with any analytics request, its actual server cost depends on the site's traffic and database performance.
Yes, the plugin now includes multisite support, including in the uninstall routine.
Yes. Use the [bbk_post_views] shortcode, or add the "Bubuku · Vistas del post" block in the block editor. Both show the current post's view count; add show_last_viewed="1" to the shortcode (or toggle "Mostrar la fecha de la última visita" on the block) to also show the date of the last view. A content type that isn't counting views, per your settings, shows nothing.
Yes. Settings → Post View Count includes a chart of views over time (day/week/month) and a comparison of the current 30-day period against the previous one, both drawn from the same data used by the REST/MCP trend endpoints.
Yes, by default. When a visitor's browser sends the DNT or Sec-GPC signal, the plugin still counts the view (it's already anonymous — no IP or User-Agent is ever stored) but skips recording the optional device-width and referrer breakdown for that visit. You can turn this off in Settings → Post View Count if you'd rather always record the full breakdown.
Core\Query) powering most-viewed content, stale content, per-post stats, trends and summary — used by the new admin columns, WP-CLI commands.wp bbk-views top, wp bbk-views stale and wp bbk-views post <id> (only registered when WP-CLI is present).GET /bbk_postview/v1/trends REST endpoint (capability edit_posts, cacheable) for period-over-period view trends.{prefix}bbk_post_views, {prefix}bbk_post_views_daily), tracking the date and time of the first and last view per post in addition to the total — the first step towards analytics features (most-viewed content, stale content) planned for upcoming versions.views post meta is migrated automatically and incrementally (500 rows per batch via WP-Cron) into the new tables on upgrade — no data is lost, and the migration is safe to run more than once.views post meta is still written on every view as a compatibility mirror for themes and queries that already read it (e.g. orderby=meta_value_num); a new views_last post meta exposes the last-view date the same way.uninstall.php now removes the plugin's own tables, options and deduplication transients (in addition to post meta), including on multisite. Whether to delete this data on uninstall is now configurable from the settings page (enabled by default, per WordPress.org guidelines).views post meta is never removed, so the counter keeps working from where it was.Origin/Referer against the site's own URL, rejecting cross-origin browser requests in addition to the existing post_id validation and per-visitor deduplication.src/Core, src/Api, src/Frontend) — no functional change for site visitors.vendor/ at runtime.<head> with jQuery as an unused dependency instead of deferred in the footer.