[WordPress] 外掛分享: GlotCore History Limiter

首頁外掛目錄 › GlotCore History Limiter
WordPress 外掛 GlotCore History Limiter 的封面圖片
全新外掛
安裝啟用
尚無評分
15 天前
最後更新
問題解決
WordPress 4.9+ PHP 7.4+ v1.0 上架:2026-04-14

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「GlotCore History Limiter」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Controls and optimizes translation history in GlotPress by enforcing limits on waiting and old entries per string,
reducing unnecessary revisions and keeping the database lean and efficient.

It limits the number of waiting translations.
Any waiting translations above the limit are set to old status and are no longer shown in the waiting translations list.

It limits the number of old translations.
Any old translations above the limit are permanently deleted from the database.

How the limit works
Assume the limit is set to 2 translations per string.
1. Single user behavior
When a single user submits multiple translations:

The latest translation is always marked as waiting
The previous waiting translation becomes old
If the number of old translations exceeds the limit:

The oldest old translation is deleted

Result:
– 1 waiting translation (latest)
– Up to 2 old translations (limited)
2. Multiple users
When multiple users submit translations for the same string:

Each user can have one waiting translation

A new submission:

Replaces that user’s previous waiting (which becomes old)
Does affect other users waiting translations if the total number of waiting translations exceeds the limit
The oldest waiting translation over the limit (regardless of user) becomes old

All old translations are shared (counted globally per string)

All waiting translations are shared (counted globally per string)

Configuration
Once installed, GlotCore History Limiter is ready to use. The default limit is set to 3 history entries per string.
You can change this limit by defining the following constant in your wp-config.php file:
php
define( 'GLOTCORE_HISTORY_LIMIT', 3 ); // Change 3 to your desired limit
You can also modify the limit by hooking into the glotcore_history_limit filter in your theme or plugin:
php
add_filter( 'glotcore_history_limit', function( $limit ) {
return 3; // Change 3 to your desired limit
} );

延伸相關外掛

文章
Filter
Apply Filters
Mastodon