[WordPress] 外掛分享: Init Recent Comments – Templated, Modern, Minimal

首頁外掛目錄 › Init Recent Comments – Templated, Modern, Minimal
WordPress 外掛 Init Recent Comments – Templated, Modern, Minimal 的封面圖片
50+
安裝啟用
尚無評分
158 天前
最後更新
問題解決
WordPress 5.5+ PHP 7.4+ v1.4 上架:2025-09-29

內容簡介

<h3>總結:</h3>
Init Recent Comments是一個開發者友好的外掛程式,讓您可以透過簡單的短碼在任何地方顯示最新評論。它使用乾淨的HTML、最小的CSS和完全可自定義的範本,適合博客、新聞網站或任何希望更好地展示活躍討論的個人或機構。

<ul>
<li><strong>問題:</strong>Init Recent Comments是一個開發者友好的WordPress外掛程式嗎?</li>
<p><strong>答案:</strong>是的,這是一個開發者友好的外掛程式。</p>

<li><strong>問題:</strong>這個外掛程式如何展示最新的評論?</li>
<p><strong>答案:</strong>透過簡單的短碼可以在任何地方顯示最新評論。</p>

<li><strong>問題:</strong>這個外掛程式最大的特色是什麼?</li>
<p><strong>答案:</strong>它的主要特色包括模板渲染支持、乾淨的CSS、未來設計的REST架構、沒有jQuery等。</p>

<li><strong>問題:</strong>這個外掛程式的授權是什麼?</li>
<p><strong>答案:</strong>這個外掛程式基於GPLv2或更新版本的授權,您可以自由使用、修改和分發它。</p>
</ul>

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Init Recent Comments – Templated, Modern, Minimal」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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.
Key design goals:

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.
GitHub repository: https://github.com/brokensmile2103/init-recent-comments
Features

Simple shortcode: [init_recent_comments]
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)

Usage
Use the shortcode anywhere:
[init_recent_comments number="5" maxheight="400px"]

Attributes:

number – Total comments to show (default: 5)
maxheight – Optional max height with scroll and hidden scrollbar (example: 300px)

To override templates, create the folder in your theme:
your-theme/
└── init-recent-comments/
├── wrapper.php
└── comment-item.php

Filters for Developers

This plugin provides multiple filters to help developers customize caching behavior and performance for recent comments, reviews, and total comment count queries.
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_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
License
This plugin is licensed under the GPLv2 or later.
You are free to use, modify, and distribute it under the same license.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon