Version 4.0.0
Release post: https://webberzone.com/announcements/top-10-v4-0-0/
Features:
- Added a new REST API route (
counter
) to fetch the post count for individual posts. - Introduced the Top 10 Post Count Block for displaying post counts.
- Added filters
top_ten_query_exclude_terms_include_parents
andtop_ten_query_include_terms_include_parents
to include parent terms in post queries. Pro users can enable this in settings. - New
get_tptn_short_circuit
filter to bypass the plugin’s output. - New filter
tptn_dashboard_setup
to disable Top 10 widgets being displayed on the admin dashboard. - [Pro] New Top 10 Query Block for querying popular posts directly from the block or site editor.
- [Pro] Enhanced Top 10 Featured Image Block now supports multiple image sources.
- [Pro] Popular Posts block now includes:
- Buttons to save and clear default block settings.
- Auto-insertion of default and global settings attributes, with an option to disable this in the Posts List settings.
- [Pro] Added a new admin bar menu item to view daily, total, and overall post counts, access Top 10 admin pages, and clear the Top 10 cache.
- [Pro] Added
display_only_on_tax_ids
parameter to restrict popular posts display to specific taxonomy terms. - [Pro] New Fast Tracker improves post view tracking speed. Select it from your settings page.
- [Pro] "Display columns on post types" setting to choose which post type screens display admin columns.
- [Pro] "Also show dashboard to" setting to select user roles that can view the dashboard screen.
- [Pro] New option added to the Edit Post meta box mapped to
include_cat_ids
to include popular posts from specific categories only.
Enhancements:
- Direct support for
WP_Query
iftop_ten_query
is used in query arguments. - Optimised media handler to reduce queries.
- New filter:
tptn_shortcode_defaults
for default shortcode arguments. - Media Handler improvements:
- Added
use_site_icon
andstyle
parameters. get_image_html()
now useswp_get_attachment_image()
with a valid attachment ID.- Support for
decoding
,loading
, andfetchpriority
attributes. get_attachment_id_from_url()
now strips size suffixes before locating the attachment ID.
- Added
- Updated top-10/popular-posts block to API version 3.
- Added
$more_link_text
parameter forget_the_excerpt()
.
Full Changelog: v3.3.4...4.0.0