[WordPress] 外掛分享: Logout Button

首頁外掛目錄 › Logout Button
100+
安裝啟用
★★★★★
5/5 分(2 則評價)
4570 天前
最後更新
問題解決
WordPress 3.0.0+ v1.0 上架:2013-08-07

內容簡介

這個外掛可以視為前端登出解決方案。它允許 WordPress 管理員在任何頁面(或文章)嵌入一個連結,讓其他 WordPress 使用者可以輕鬆登出,而不必煩惱 WordPress 儀表板。此外,該外掛提供了三個不同的短碼,每個短碼都有不同的重定向選項:重定向到首頁、當前頁面或 WordPress 預設的 wp-login.php 頁面。

Logout Button 外掛使用 WP 通過 wp_loginout() 提供的預設登出功能。它會檢查使用者是否已登入。如果使用者已登入,他們將會看到一個「登出」鏈結。如果使用者未登入,則不會顯示任何東西。

未來的版本將包括選擇「主題」的功能。現在,它只會顯示一個簡單的鏈結,並使用當前啟用的主題的 CSS。當然,您也可以直接進入 display_button.php 編輯 CSS。

外掛標籤

開發者團隊

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

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

原文外掛簡介

This plugin can be thought of as a front-end logout solution. It allows a WordPress administrator to embed a link on
any page (or post if you want) that gives other WordPress users the ability to easily logout without having to fuss
with the WordPress Dashboard. There are three shortcodes that can be used, and each one has a different redirect
option: Redirect to Home, Current Page, or the WordPress Default wp-login.php page.
The Logout Button plugin uses the default log out functionality provided by WP through wp_loginout(). It checks to
see if the user is logged in. If the user is logged in, a Log Out link will be displayed to them. If the user is not
logged in, nothing will be shown to the user.
Future releases will include the ability to choose “Themes”. Right now, a simple link is displayed and the CSS from
the currently activated theme is used on that link. Of course, there is always the ability to dive directly into
display_button.php to edit the CSS yourself.

延伸相關外掛

文章
Filter
Mastodon