[WordPress] 外掛分享: TagLock

首頁外掛目錄 › TagLock
全新外掛
安裝啟用
尚無評分
60 天前
最後更新
問題解決
WordPress 6.8+ PHP 8.2+ v1.0.0 上架:2026-01-16

內容簡介

總結: TagLock 是一個 WordPress 外掛,可讓您基於 KlickTipp 標籤保護 WordPress 內容(視頻、文本、下載),而無需設置複雜的會籍外掛。透過使用 headless 方法,保護的內容不會在初始 HTML 中呈現,而是在成功的 API 驗證後,通過 React 和 REST API 動態加載。

問題與答案:
1. TagLock 可以保護哪些 WordPress 內容?
- 回答: TagLock 可以保護視頻、文本、下載等內容。

2. TagLock 有哪些特點?
- 回答:
- 使用 TagLocker 保護內容的簡碼 [taglock id="1"]...[/taglock]。
- 基於標籤的存取控制,可定義所需的 KlickTipp 標籤(任意或全部標籤模式)。
- 與快取兼容,只有在驗證後才加載受保護的內容。
- 通過設計確保安全,受保護的內容不會在初始 HTML 中呈現。
- 基於 React 的管理介面,使用 WordPress 組件的現代設置 UI。
- 連接健康監控,定期檢查連接以及在管理介面中顯示已連接/已斷開的狀態。
- 不需要使用者帳戶,透過訂閱者識別符進行驗證。
- 可擴展,提供過濾器和操作以進行自定義和附加元件。

3. TagLock 的系統需求是什麼?
- 回答: WordPress 版本需為 6.8 或更高、PHP 版本需為 8.3 或更高,以及需要擁有支援 API 存取的 KlickTipp 帳戶。

4. 如何使用簡碼來保護內容?
- 回答: 請使用以下格式的簡碼保護內容:[taglock id="1"]Protected content[/taglock]。其中 id 為必填欄位,message 和 loader_text 為可選自訂訊息欄位。

5. 如何在前端存取受保護頁面?
- 回答: 使用者應該通過含有其訂閱者識別符的連結來開啟受保護頁面,並放在 URL 的 hash 中,而不是以查詢參數的形式:https://example.com/protected-page/#taglock_subscriber_id=12345。前端會將識別符存儲在本地存儲中並從地址欄中移除。

外掛標籤

開發者團隊

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

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

原文外掛簡介

TagLock allows you to protect WordPress content (videos, text, downloads) based on KlickTipp tags without setting up a complex membership plugin.
Unlike traditional solutions, TagLock uses a headless approach: Protected content is not rendered in the initial HTML but is dynamically loaded via React and REST API only after successful API validation.
🔥 Features

TagLocker-based Protection – Shortcode [taglock id="1"]...[/taglock] protects any content.
Tag-based Access Control – Define which KlickTipp tags are required (Any or All tags mode).
Cache Compatible – Protected content is loaded only after verification.
Secure by Design – Protected content is not rendered in the initial HTML.
React-based Admin Interface – Modern settings UI using WordPress Components.
Connection Health Monitoring – Periodic connection checks and a connected/disconnected status in the admin UI.
No User Accounts Required – Access is verified via a subscriber identifier.
Extensible – Provides filters and actions for customizations and add-ons.

Requirements

WordPress 6.8 or higher
PHP 8.3 or higher
KlickTipp account with API access

Documentation
For detailed documentation, API references, and integration guides, please visit our GitHub repository.
Usage
Use the shortcode to protect content:
[taglock id="1"]Protected content[/taglock]

Shortcode attributes:

id (required): TagLocker ID (configured in WordPress admin)
message (optional): Custom denied message
loader_text (optional): Custom loading text

Admin UI
After connecting your KlickTipp account, TagLock loads your available tags and lets you select them by name while storing their tag IDs internally.
Access Links
Users should open protected pages via links that include their subscriber identifier in the URL hash (not as a query parameter):
https://example.com/protected-page/#taglock_subscriber_id=12345

The frontend stores the identifier in LocalStorage and removes it from the address bar.

文章
Filter
Apply Filters
Mastodon