內容簡介
這個外掛程式會在任何有密碼保護的文章內容中加入一個登出按鈕。有時候,用戶會希望以密碼保護的頁面與特權用戶共享資訊,但預設的 10 天過期時間對他們來說太長了。因此我撰寫了一個小型的外掛程式,使用 AJAX 技術並將 cookie 的過期時間設定為立即過期,實際上是過去的 10 天。
支援 WordPress 使用者登入或登出後的操作。
使用 WordPress 設定文章 cookie 的相同功能。
具有簡單易懂的設定頁面,讓所有操作更為方便。
允許您向使用者發出登出提示。
外掛標籤
開發者團隊
② 後台搜尋「Protected Posts Logout Button」→ 直接安裝(推薦)
原文外掛簡介
This plugin simply adds a logout button to the content of any password protected post. Sometimes clients want a password protected page to share information with privileged individuals and the default 10 days for the cookie to expire is too long for their liking. So I wrote a little plugin to do this with AJAX and set the cookie to expire immediately, well actually 10 days in the past.
Works logged in or out as a WordPress user.
Uses the same functionality WordPress uses to set post cookies.
Has a simple settings page to make everything easier.
Allows you to alert user they have logged out.
