WordPress plugin intelligence profile

Init Recent Comments – Templated, Modern, Minimal

Display recent comments with customizable templates, Block Editor blocks, Abilities API support, and clean CSS.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.1
Current version2.0.1
WordPress coverageTested up to WordPress 7.1
Minimum stackWP 6.9 · PHP 7.4
Directory statusactive
Last directory update2 Oct 20261mo ago
Active installations50Adoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Init Recent Comments – Templated, Modern, Minimal version 2.0.1 as active, updated 1mo ago and tested up to WordPress 7.1.

Overview

About this plugin

Init Recent Comments is a developer-friendly plugin that lets you display the latest comments anywhere via a simple shortcode. It uses clean HTML, minimal CSS, and fully customizable templates.

No widgets, no bloated options. Just lightweight, extendable code — made for real sites, with native Block Editor support and Abilities API integration for the next generation of automation tools.

Key design goals:

  • Native Block Editor blocks, one per shortcode, with live preview
  • Abilities API support (WordPress 6.9+) for AI agents and automation tools
  • Templated rendering with override support from themes
  • Clean CSS you can disable or replace
  • REST-ready architecture (future-proof)
  • No jQuery, no nonsense

Perfect for blogs, news sites, or anyone who wants a better way to show active discussions.

This plugin is part of the Init Plugin Suite — a collection of minimalist, fast, and developer-focused tools for WordPress.

com/brokensmile2103/init-recent-comments

Features

  • Block Editor (Gutenberg) blocks: Recent Comments, Recent Reviews, User Recent Comments, User Recent Reviews — each with a live server-side preview in the editor
  • Abilities API (WordPress 6.9+): all 4 shortcodes’ data exposed as discoverable, executable abilities via wp_get_abilities() and the wp-abilities/v1 REST namespace
  • Simple shortcode: [init_plugin_suite_recent_comments] (legacy alias: [init_recent_comments] )
  • Shortcode for displaying recent reviews: [init_plugin_suite_recent_reviews] (legacy alias: [init_recent_reviews] )
  • Shortcode for displaying recent comments of a specific user: [init_plugin_suite_user_recent_comments] (legacy alias: [init_user_recent_comments] )
  • Shortcode for displaying recent reviews of a specific user: [init_plugin_suite_user_recent_reviews] (legacy alias: [init_user_recent_reviews] )
  • Template-based rendering ( comment-item.php, wrapper.php )
  • CSS can be disabled to use your theme’s design
  • No widgets, no jQuery, no frontend bloat
  • Developer-ready: extend with filters, REST, and lazy loading (planned)
  • Translation-ready (.pot included)

Block Editor (Gutenberg)

Four dynamic blocks are available under their own Init Recent Comments category in the block inserter — no shortcodes needed if you prefer working entirely in the editor:

  • Recent Comments — equivalent to [init_plugin_suite_recent_comments]
  • Recent Reviews — equivalent to [init_plugin_suite_recent_reviews]
  • User Recent Comments — equivalent to [init_plugin_suite_user_recent_comments]
  • User Recent Reviews — equivalent to [init_plugin_suite_user_recent_reviews]

Each block shares the exact same rendering code as its shortcode, so switching between the Block Editor and shortcodes never changes the output. Block settings map directly to shortcode attributes, and a live preview is shown right in the editor as you configure it.

Abilities API (WordPress 6.9+)

9 and above, Init Recent Comments registers four read-only abilities under the init-recent-comments category — get-recent-comments, get-recent-reviews, get-user-recent-comments, and get-user-recent-reviews — mirroring the plugin’s four shortcodes exactly. This plugin has no write actions at all (it’s a pure display plugin), so all of its functionality is safely exposed. These abilities are discoverable and executable via PHP ( wp_get_abilities() ), and — for sites that opt in — the wp-abilities/v1 REST namespace.

9, it silently does nothing and the rest of the plugin is unaffected.

Privacy note: looking up guest comments by user_email through get-user-recent-comments requires the moderate_comments capability, and get-user-recent-reviews only returns non-approved reviews ( pending, rejected, …) to users with manage_options. Everything else stays public, exactly like the shortcodes.

Usage

Prefer working in the Block Editor? Each shortcode below has an equivalent block — see the “Block Editor (Gutenberg)” section above.

Use the shortcode anywhere:

[init_plugin_suite_recent_comments number="5" maxheight="400px"]

Recent reviews:

[init_plugin_suite_recent_reviews number="5"]

Recent comments of a specific user:

[init_plugin_suite_user_recent_comments user_id="123"]

Recent reviews of a specific user:

[init_plugin_suite_user_recent_reviews user_id="123"]

The legacy tags [init_recent_comments], [init_recent_reviews], [init_user_recent_comments], and [init_user_recent_reviews] still work exactly the same way, for backward compatibility with existing content.

Attributes:

  • number – Total items to show (default: 5)
  • maxheight – Optional max height with scroll and hidden scrollbar (example: 300px )
  • paged – Optional pagination
  • theme – Light or dark (example: theme="dark" )
  • For user shortcodes: user_id, user_login, or user_email can be used to target the user

To override templates, create the folder in your theme:

php<h3>Filters for Developers</h3>

This plugin provides multiple filters to help developers customize caching behavior and performance for recent comments, reviews, and total comment count queries.

By default, comment/review queries are NOT cached (TTL = 0) so newly posted comments always show up immediately — this is intentional, since most sites using this plugin expect real-time freshness. If your site has heavy traffic and you’re fine with a short delay before new comments appear, you can enable caching yourself using the filters below (a value like 60 for 60 seconds is a reasonable starting point). Total comment count queries default to a 5-minute TTL instead, since counts are less time-sensitive.

init_plugin_suite_recent_comments_ttl

Control the cache TTL (in seconds) for recent comments.

Applies to: Recent Comments Query

Params: int $ttl

init_plugin_suite_recent_comments_query_args

Allows developers to modify or extend the WP_Comment query arguments before the query runs.

Applies to: Recent Comments Query

Params: array $args

init_plugin_suite_recent_reviews_ttl

Control the cache TTL (in seconds) for recent reviews.

Applies to: Recent Reviews Query

Params: int $ttl

init_plugin_suite_user_recent_comments_ttl

Control cache TTL (in seconds) for recent comments by a specific user.

Applies to: [init_user_recent_comments]

Params: int $ttl, array $args

init_plugin_suite_user_recent_reviews_ttl

Control cache TTL (in seconds) for recent reviews by a specific user.

Applies to: [init_user_recent_reviews]

Params: int $ttl, array $args

init_plugin_suite_total_comments_ttl

Control the cache TTL (in seconds) for total approved comment counts by post type.

Applies to: Total Comments Query

Params: int $ttl, array $post_types

init_plugin_suite_total_by_posts_ttl

Control the cache TTL (in seconds) for total approved comment counts across multiple post IDs.

Applies to: Total by Post IDs Query

Params: int $ttl, array $post_ids

init_plugin_suite_recent_comments_visible_reviews

Filter the list of reviews after reviews on non-public posts (draft, pending, private, deleted) have been removed.

Applies to: Recent Reviews and User Recent Reviews

Params: array $visible, array $reviews

License

This plugin is licensed under the GPLv2 or later.

You are free to use, modify, and distribute it under the same license.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • recent comments
  • shortcode
  • template
  • widget
Compatibility & maintenance

Compatibility & maintenance

Tested with WP 7.1

Marked as tested with the current WordPress 7.1 release.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.1
Minimum requirementsWordPress 6.9 · PHP 7.4
Update activity2 Oct 20261mo ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

Version2.0.02.0.1
WordPress compatibility7.17.1.2
Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.