Skip to content

v2.8.1 - Dashboard widget filter buttons + default setting

Choose a tag to compare

@hummelmose hummelmose released this 16 Aug 20:35
· 4 commits to main since this release

WP VisitChart v2.8.1

New feature: filter buttons on the dashboard widget, plus a default filter setting.


v2.8.0 — Filter buttons

The Top 20 i dag dashboard widget now has three filter buttons at the top: Alle, Artikler, and Sider.

  • Clicking a filter refreshes only the table via AJAX — the rest of the WordPress dashboard does not reload
  • Each filter is cached separately for 60 seconds, so rapid tab switching doesn't repeatedly hit the database while data stays reasonably fresh
  • Post/page filtering uses an INNER JOIN against wp_posts on the primary key (always indexed) — negligible performance cost since lstats_post_views typically only contains a few hundred rows for the current day
  • Widget code refactored into three functions: data fetch + cache, shared HTML builder (used by both page load and AJAX), and the outer shell with buttons

v2.8.1 — Default filter setting

New setting under WP VisitChart → Settings → Dashboard widget - standardfilter lets you choose which filter the widget opens with by default when the WordPress dashboard loads. You can still freely switch filters afterwards.


Documentation

Both the English and Danish user manuals have been updated with a new section covering the dashboard widget filters.


Upgrade

Download wp-visitchart.zip below and replace the existing plugin files. No database changes required.