
內容簡介
總結:透過這個外掛,使用者可以動態地自訂公開文章預覽外掛的過期時間。
問題與回答:
1. 這個外掛的功能是什麼?
- 可以設定公開文章預覽連結的過期時間。
- 可以自訂過期時間,從1分鐘至30天。
- 有安全的輸入驗證以防止無效值。
- 完全整合到 WordPress 設定面板中。
- 實現安全又輕量化。
2. 如何使用這個外掛?
- 在 WordPress 管理面板中前往「設定」 >「PPP Extension」。
- 輸入過期時間(最小:1,最大:43200分鐘/30天)。
- 點擊「儲存變更」。
- 公開文章預覽連結將根據你選擇的時間而到期。
3. 這個外掛有哪些安全性措施?
- 使用者輸入經過淨化和驗證,以防未授權值。
- 輸入值限制在1分鐘至30天之間,避免極端值。
- 逃逸輸出以防止跨網站指令碼攻擊。
4. 這個外掛的授權是什麼?
- 這個外掛是在 GPLv2 或之後的授權下發布。
外掛標籤
開發者團隊
原文外掛簡介
Extends the Public Post Preview plugin by allowing users to customize the expiration time dynamically through the WordPress admin panel.
Features
Set the expiration time for Public Post Preview links.
Customize the expiration time in minutes (from 1 minute to 30 days).
Secure input validation to prevent invalid values.
Fully integrated into the WordPress Settings panel.
Safe and lightweight implementation.
How to Use
Navigate to Settings > PPP Extension in your WordPress admin panel.
Enter the expiration time in minutes (minimum: 1, maximum: 43200 minutes / 30 days).
Click Save Changes.
Public Post Preview links will now expire based on your selected time.
Security
– User input is sanitized and validated to prevent unauthorized values.
– The input is limited between 1 minute and 30 days to avoid extreme values.
– Escaped output prevents XSS attacks.
License
This plugin is released under the GPLv2 or later license.
