[WordPress] 外掛分享: Biscotti

首頁外掛目錄 › Biscotti
WordPress 外掛 Biscotti 的封面圖片
20+
安裝啟用
★★★★★
5/5 分(1 則評價)
30 天前
最後更新
問題解決
WordPress 6.0+ PHP 8.0+ v3.0.0 上架:2023-01-09

內容簡介

Biscotti 是一款 WordPress 插件,它可以修改已登入使用者的 Cookie 過期時間為三個月、六個月或一年。這樣一來,某些使用者就不需要一直輸入密碼了。

外掛標籤

開發者團隊

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

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

原文外掛簡介

Biscotti is a plugin that modifies the expiration of the logged in user cookie in WordPress. Choose from the default WordPress expiration (14 days), three months (90 days), six months (180 days), or one year (365 days). Because some people hate to have to keep entering their passwords.
Features

Per-user cookie expiration settings
Four expiration options: default, 3 months, 6 months, 1 year
WP-CLI support for managing settings programmatically
Fully translatable with i18n support
Secure implementation with CSRF protection
Clean uninstall that removes all plugin data

Security
Version 3.0.0 includes critical security improvements:
* CSRF protection with nonce verification
* Input validation with whitelist checking
* Strict type comparisons throughout
* Modern PHP 8.0+ type hints
Requirements

WordPress 6.0 or higher
PHP 8.0 or higher

WP-CLI Commands
As of version 2.1.0, Biscotti includes WP-CLI commands for managing a user’s logged in session cookie expiration.
Get a user’s cookie expiration
wp biscotti get

Retrieves the current cookie expiration setting for a user.
Example:
wp biscotti get 123
Set a user’s cookie expiration
wp biscotti set

Sets the logged in session cookie expiration for a user.
Parameters:
* — The ID of the user
* — One of: default, 3 months, 6 months, 1 year
Examples:
* Set to 1 year: wp biscotti set 123 '1 year'
* Reset to default: wp biscotti set 123 default

延伸相關外掛

文章
Filter
Apply Filters
Mastodon