[WordPress] 外掛分享: Login Logout Shortcode

首頁外掛目錄 › Login Logout Shortcode
WordPress 外掛 Login Logout Shortcode 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
1,000+
安裝啟用
★★★★★
5/5 分(1 則評價)
2829 天前
最後更新
問題解決
WordPress 4.0+ v1.1.0 上架:2016-06-09

內容簡介

透過一個簡單的簡碼,讓您的訪客可以根據他們當前的狀態登入或登出。

簡碼會輸出一個 a href 連結,您可以將其加到網站的頁首、頁尾或任何其他位置。

簡碼範例:

[login-logout text_to_login="登入" text_to_logout="登出" class="自訂類別" redirect="/shop/"]

可用的參數:

text_to_login - 提示未登入使用者登入的文字。
text_to_logout - 提示已登入使用者登出的文字。
class - 可選的自訂類別,可以加到連結中。
redirect - 登入或登出後要重新導向到的可選頁面。如果未包含此項目,使用者將在點擊連結時重定向到當前頁面。
login_url - 可選參數,用戶可以更改登入頁面的 URL

外掛標籤

開發者團隊

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

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

原文外掛簡介

Use a simple, single shortcode to allow your visitors to login or logout depending on their current status.
The shortcode outputs an a href link for you to add in the header, footer or anywhere else on your website.
Example Shortcode:
[login-logout text_to_login="Login" text_to_logout="Logout" class="custom-class" redirect="/shop/"]

Available Parameters:

text_to_login – The text to prompt logged-out users to log in.
text_to_logout – The text to prompt logged-in users to log out.
class – Any optional custom classes to be added to the link.
redirect – An optional page to redirect to after logging in/out. If not included, users will redirect to whatever page they’re on when they click the link.
login_url – An optional parameter that user can change the URL login page

延伸相關外掛

文章
Filter
Apply Filters
Mastodon