Title: User Login Disable
Author: chexwarrior
Published: <strong>2022 年 7 月 22 日</strong>
Last modified: 2022 年 7 月 22 日

---

搜索插件

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

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

# User Login Disable

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

[下载](https://downloads.wordpress.org/plugin/user-login-disable.0.1.0.zip)

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

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

## 描述

This plugin allows administrators to enable or disable other user account’s logins.

When a user is disabled:
 * They can not login to the site * They are immediately
logged out of the site * Any [application passwords](https://make.wordpress.org/core/2020/11/05/application-passwords-integration-guide/)
created with this user will no longer authenticate with the WP REST API

#### WP-CLI Integration

This plugin integrates with WP-CLI and provides the following two commands:

    ```
    # Enables the target users
    wp user enable <List of User IDs, Logins or Emails> [--all]

    # Disables the target users
    wp user disable <List of User IDs, Logins or Emails> [--all]
    ```

### Support

This plugin is developed on the author’s own time so there is no guarantee that 
reported bugs will be fixed in a timely fashion.

To report a bug please visit the plugin’s [GitHub repository](https://github.com/ChexWarrior/wp-user-disable-login).

## 屏幕截图

[⌊The Disable field on a user profile⌉⌊The Disable field on a user profile⌉[

The Disable field on a user profile

[⌊Disabled users on the admin user list page⌉⌊Disabled users on the admin user list
page⌉[

Disabled users on the admin user list page

## 安装

#### Classic

 1. Upload the `user-login-disable` dir to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

#### Composer

 1. Check out the instructions [here](https://composer.rarst.net/)

## 常见问题

### Why does this plugin exist?

Very specific audit reasons at a job of mine, and I couldn’t find another plugin
that did this w/o a ton of other unneeded functionality.

## 评价

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

### 󠀁[Does what it says on the tin](https://wordpress.org/support/topic/does-what-it-says-on-the-tin-568/)󠁿

 [Youdaman](https://profiles.wordpress.org/youdaman/) 2023 年 5 月 25 日

As per the author’s FAQ, I just wanted a plugin that disabled users easily without
any extra bells and whistles. Extra points for the WP-CLI integration!

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

## 贡献者及开发者

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

贡献者

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

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

### 对开发感兴趣吗?

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

## 更新日志

#### 0.1

 * Initial Release

## 额外信息

 *  版本 **0.1.0**
 *  最后更新：**4 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 5.6 或更高版本 **
 *  已测试的最高版本为 **6.0.12**
 *  PHP 版本 ** 8.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/user-login-disable/)
 * 标签
 * [audit](https://cn.wordpress.org/plugins/tags/audit/)[login](https://cn.wordpress.org/plugins/tags/login/)
   [security](https://cn.wordpress.org/plugins/tags/security/)[users](https://cn.wordpress.org/plugins/tags/users/)
 *  [高级视图](https://cn.wordpress.org/plugins/user-login-disable/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

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

## 贡献者

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

## 支持

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

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