Title: Login-Logout
Author: webvitalii
Published: <strong>2011 年 5 月 12 日</strong>
Last modified: 2020 年 9 月 5 日

---

搜索插件

![](https://ps.w.org/login-logout/assets/banner-772x250.png?rev=482374)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/login-logout_e0e0ec.svg)

# Login-Logout

 作者：[webvitalii](https://profiles.wordpress.org/webvitaly/)

[下载](https://downloads.wordpress.org/plugin/login-logout.3.8.zip)

 * [详情](https://cn.wordpress.org/plugins/login-logout/#description)
 * [评价](https://cn.wordpress.org/plugins/login-logout/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/login-logout/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/login-logout/#developers)

 [支持](https://wordpress.org/support/plugin/login-logout/)

## 描述

 * **[Advanced iFrame Pro](https://1.envato.market/KdRNz)**
 * **[Login-Logout](http://web-profile.net/wordpress/plugins/login-logout/)**
 * **[Donate](http://web-profile.net/donate/)**
 * **[GitHub](https://github.com/webvitalii/login-logout)**

“Login-Logout” plugin adds widget with login or logout link. Also can be shown register
or site-admin link. It is the replacement of the default Meta widget.

#### If user is not logged in there are such links:

 * login (after login action user will return to previous page);
 * register (if user can register) (if checkbox is active);

#### If user is logged in there are such links:

 * welcome text with link to user profile (if checkbox is active);
 * logout (after logout action user will return to previous page);
 * site admin (if checkbox is active);

## 屏幕截图

[⌊Login-Logout widget⌉⌊Login-Logout widget⌉[

Login-Logout widget

[⌊Widget output when user is not logged in⌉⌊Widget output when user is not logged
in⌉[

Widget output when user is not logged in

[⌊Widget output when user is logged in⌉⌊Widget output when user is logged in⌉[

Widget output when user is logged in

[⌊Widget output when user is logged in and inline option is on⌉⌊Widget output when
user is logged in and inline option is on⌉[

Widget output when user is logged in and inline option is on

## 安装

 1. Install and activate the plugin on the Plugins page
 2. Add “Login-Logout” widget to your sidebar and customize it

## 评价

![](https://secure.gravatar.com/avatar/69b74a8b449201f3e9e4c562803d8ede0bb97bd5ad04af631f12d6a7cac673ea?
s=60&d=retro&r=g)

### 󠀁[Finally I got it right](https://wordpress.org/support/topic/finally-i-got-it-right/)󠁿

 [danielepais](https://profiles.wordpress.org/danielepais/) 2021 年 3 月 25 日

I was having issues with the very annoying logout confirmation but with this plugin
is finally gone.

![](https://secure.gravatar.com/avatar/44d3af495c159f426170e0db34266844a8c67feb0848361ccdfb6bf4e85d3687?
s=60&d=retro&r=g)

### 󠀁[So good, I didn’t need it.](https://wordpress.org/support/topic/so-good-i-didnt-need-it/)󠁿

 [douglasuk](https://profiles.wordpress.org/douglasuk/) 2020 年 1 月 9 日

I think it deserves five stars when the instructions tell you what you can do to
NOT use it and still get what you want. Can’t ask better than that!

![](https://secure.gravatar.com/avatar/9038fefd4186ca83516f213a9f8a94fac14c784244d7018c6bad9752e4e6eb92?
s=60&d=retro&r=g)

### 󠀁[Excellent, great, awesome yes it is!](https://wordpress.org/support/topic/excellent-great-awesome-yes-it-is/)󠁿

 [dglite](https://profiles.wordpress.org/dglite/) 2019 年 1 月 16 日

Excellent, great, awesome yes it is!

![](https://secure.gravatar.com/avatar/e9eccf83eb9bddaac5d0bbaaba42804804014b7d610919a2f3b41b2e51934bcd?
s=60&d=retro&r=g)

### 󠀁[Awesome!](https://wordpress.org/support/topic/awesome-6148/)󠁿

 [jaydeeforce](https://profiles.wordpress.org/jaydeeforce/) 2018 年 11 月 16 日

Super easy to set up exactly what it is for.

![](https://secure.gravatar.com/avatar/9236403d160b9567407000b3e9ea072599022060b76ffb5cba81f22f4c6abb51?
s=60&d=retro&r=g)

### 󠀁[Great (and easy to install;-)](https://wordpress.org/support/topic/great-and-easy-to-install/)󠁿

 [thmufl](https://profiles.wordpress.org/thmufl/) 2018 年 1 月 26 日

Super easy to install, worked right away. Has solved our login / logout problem 
that we have had for a long time. Many Thanks!

![](https://secure.gravatar.com/avatar/b74954f2257cdea73be95f53998fc1c31678358c2045d1cb36219849a696627d?
s=60&d=retro&r=g)

### 󠀁[Register link not show](https://wordpress.org/support/topic/register-link-not-show/)󠁿

 [androsijep](https://profiles.wordpress.org/androsijep/) 2016 年 9 月 3 日 1 回复

Register link not show! I check checkbox to display register link but not showing
link

 [ 阅读所有25条评价 ](https://wordpress.org/support/plugin/login-logout/reviews/)

## 贡献者及开发者

「Login-Logout」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ webvitalii ](https://profiles.wordpress.org/webvitaly/)

「Login-Logout」插件已被翻译至 5 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/login-logout/contributors)
为本插件所做的贡献。

[帮助将「Login-Logout」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/login-logout)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/login-logout/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/login-logout/)，或通过[RSS](https://plugins.trac.wordpress.org/log/login-logout/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/login-logout/)。

## 更新日志

#### 3.8

 * Fixed the PHP 7.2 Deprecated Notice on create_function. Thanks to joneiseman –
   https://wordpress.org/support/users/joneiseman/

#### 3.7

 * Using wp_registration_url() instead of hardcoding registration link. Thanks to
   dmasin – https://profiles.wordpress.org/dmasin/

#### 3.6

 * Bugfixing

#### 3.5

 * Bugfixing
 * Code refactoring
 * Added LOGIN_LOGOUT_PLUGIN_VERSION constant

#### 3.4

 * Added ‘https’ support. Thanks to Sven

#### 3.3

 * Added ‘login_logout_username_link’ filter. Idea and code provided by Jon

#### 3.2

 * One more replace PHP4 style constructors with PHP5 constructors

#### 3.1

 * Replace PHP4 style constructors with PHP5 constructors – https://make.wordpress.
   org/core/2015/07/02/deprecating-php4-style-constructors-in-wordpress-4-3/

#### 3.0

 * Minor bugfixing
 * Code cleanup

#### 2.9

 * French translation made by Jean-Michel HAROUY – http://www.ceism-angers.fr/

#### 2.8

 * Czech translation made by Daniel Čermák – http://danielcermak.eu/

#### 2.7

 * Spanish translation made by Maria Ramos from WebHostingHub

#### 2.6

 * Serbian translation made by Borisa Djuraskovic from WebHostingHub

#### 2.5

 * minor changes

#### 2.4

 * minor changes

#### 2.3

 * Fixing minor bugs

#### 2.2

 * Added extra item for the list of items

#### 2.1

 * Added html tags support in many fields
 * Added html classes to list items

#### 2.0.1

 * Link to profile bugfix

#### 2.0.0

 * Added inline option
 * Added welcome text

#### 1.8.0

 * Translation ready

#### 1.7.0

 * Added “login text”, “logout text”, “register text” and “site admin text” options

#### 1.6.0

 * Splitting “redirect to” option into “redirect to after login” and “redirect to
   after logout”

#### 1.5.0

 * Added “redirect to” option

#### 1.4.0

 * Change method of widget registering

#### 1.3.0

 * Removed title if it is empty

#### 1.2.0

 * Split register and admin links

#### 1.1.0

 * Added show or hide register or site-admin link

#### 1.0.0

 * Initial release

## 额外信息

 *  版本 **3.8**
 *  最后更新：**6 年前**
 *  活跃安装数量 **3,000+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **5.5.18**
 *  语言
 * [Czech](https://cs.wordpress.org/plugins/login-logout/) 、 [English (US)](https://wordpress.org/plugins/login-logout/)、
   [Spanish (Chile)](https://cl.wordpress.org/plugins/login-logout/) 、 [Spanish (Spain)](https://es.wordpress.org/plugins/login-logout/)、
   [Swedish](https://sv.wordpress.org/plugins/login-logout/) 和 [Ukrainian](https://uk.wordpress.org/plugins/login-logout/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/login-logout)
 * 标签
 * [login](https://cn.wordpress.org/plugins/tags/login/)[logout](https://cn.wordpress.org/plugins/tags/logout/)
   [meta](https://cn.wordpress.org/plugins/tags/meta/)[sidebar](https://cn.wordpress.org/plugins/tags/sidebar/)
   [widget](https://cn.wordpress.org/plugins/tags/widget/)
 *  [高级视图](https://cn.wordpress.org/plugins/login-logout/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  24 条 5 星评价     ](https://wordpress.org/support/plugin/login-logout/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/login-logout/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/login-logout/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/login-logout/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/login-logout/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/login-logout/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/login-logout/reviews/)

## 贡献者

 *   [ webvitalii ](https://profiles.wordpress.org/webvitaly/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/login-logout/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://web-profile.net/donate/)