
內容簡介
透過一個簡單的簡碼,讓您的訪客可以根據他們當前的狀態登入或登出。
簡碼會輸出一個 a href 連結,您可以將其加到網站的頁首、頁尾或任何其他位置。
簡碼範例:
[login-logout text_to_login="登入" text_to_logout="登出" class="自訂類別" redirect="/shop/"]
可用的參數:
text_to_login - 提示未登入使用者登入的文字。
text_to_logout - 提示已登入使用者登出的文字。
class - 可選的自訂類別,可以加到連結中。
redirect - 登入或登出後要重新導向到的可選頁面。如果未包含此項目,使用者將在點擊連結時重定向到當前頁面。
login_url - 可選參數,用戶可以更改登入頁面的 URL
外掛標籤
開發者團隊
原文外掛簡介
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
