Title: Disable Users
Author: Jared Atchison
Published: <strong>2013 年 8 月 21 日</strong>
Last modified: 2015 年 11 月 11 日

---

搜索插件

![](https://ps.w.org/disable-users/assets/banner-772x250.png?rev=1181236)

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

![](https://ps.w.org/disable-users/assets/icon-256x256.png?rev=1181236)

# Disable Users

 作者：[Jared Atchison](https://profiles.wordpress.org/jaredatch/)

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

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

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

## 描述

This plugin gives you the ability to disable specific user accounts via a profile
setting.

Once installed and activated, a checkbox appears on the user profile settings (only
for admins). When checked, the users account will be disabled and they will be unable
to login with the account. If they try to login, they are instantly logged out and
redirected to the login page with a message that notifies them their account is 
disabled.

This can be useful in a few situations.

 * You are working on a site for a client who has an account, but do not want him
   to login and/or make changes during development.
 * You have a client who has an unpaid invoice.

**[This plugin is on GitHub!](https://github.com/jaredatch/Disable-Users/)** Pull
requests are welcome. If possible please report issues through Github.

## 屏幕截图

 * [[
 * User profile setting available to administrators.
 * [[
 * Message when a disabled user tries to login.

## 安装

 1. Upload `disable-users` to your `/wp-content/plugins/` directory.
 2. Edit any user and then look for the “Disable User Account” checkbox.

## 常见问题

  Installation Instructions

 1. Upload `disable-users` to your `/wp-content/plugins/` directory.
 2. Edit any user and then look for the “Disable User Account” checkbox.

  Can I change the message a disabled user sees?

Yes, there is a filter in place for that, `ja_disable_users_notice`.

## 评价

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

### 󠀁[good and simple](https://wordpress.org/support/topic/good-and-simple-56/)󠁿

 [Jakob Helmer](https://profiles.wordpress.org/jakobuz/) 2020 年 5 月 22 日

Despite not updated for a while (which might not be needed, because it’s only just
a few lines of code), it just works.

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

### 󠀁[Works perfectly](https://wordpress.org/support/topic/works-perfectly-1275/)󠁿

 [lobogc](https://profiles.wordpress.org/lobogc/) 2017 年 10 月 20 日

Works perfectly with WP 4.8.2

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

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

 [Rufus McDufus](https://profiles.wordpress.org/rufus-mcdufus/) 2016 年 9 月 3 日

Perfect. Is there a way of listing disabled accounts afterwards? The ‘Disabled’ 
column isn’t sortable and I can’t figure a way of listing them.

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

### 󠀁[Does what it says it will do](https://wordpress.org/support/topic/does-what-it-says-it-will-do-10/)󠁿

 [jesselperry](https://profiles.wordpress.org/jesselperry/) 2016 年 9 月 3 日

Seems like a simple request, right? Disable a specific user account without deleting
the user. Surprisingly this isn’t a feature built into Wordpress, and even more 
surprising there isn’t another plugin out there that does this. There are other 
simple plugins that say they do this — but they don’t work. There are other plugins
that do things based on user role — but those are too complicated to set up user
roles just to disable an account. This does exactly what I needed — a simple plugin
that lets me disable a user with just a checkbox. Simple.

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

### 󠀁[nice little feature](https://wordpress.org/support/topic/nice-little-feature/)󠁿

 [skater4life80](https://profiles.wordpress.org/skater4life80/) 2016 年 9 月 3 日

Great idea for limiting access to others (admins or other users) while doing updates
or maintenance on the backend.

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

### 󠀁[Brazilian Portuguese translation.](https://wordpress.org/support/topic/brazilian-portuguese-translation-6/)󠁿

 [dbiagi](https://profiles.wordpress.org/dbiagi/) 2016 年 9 月 3 日

I just created a .mo file for this plugin in pt_BR. Here is the files: https://drive.
google.com/open?id=0B45nMNzIYUITenh1RWhDVzBHbmc. PS: Thanks for the plugin. Works
fine.

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

## 贡献者及开发者

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

贡献者

 *   [ Jared Atchison ](https://profiles.wordpress.org/jaredatch/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.5 (11/11/2015)

 * Added pl_PL transnation – Props Dominik Kocuj

#### 1.0.4 (6/21/2015)

 * Bug fix for Disabled column to manage user screen

#### 1.0.3 (6/15/2015)

 * Added Disabled column to manage user screen. Props @basteln3rk [(flexponsive)](https://www.flexponsive.net).
 * Cleaned up code slightly and updated README information

#### 1.0.2

 * Removed accidental PHP short form

#### 1.0.1

 * Fixed notice that would show if WP_DEBUG was on. Props @vegasgeek.

#### 1.0.0

 * Initial launch

## 额外信息

 *  版本 **1.0.5**
 *  最后更新：**9 年前**
 *  活跃安装数量 **2,000+**
 *  WordPress 版本 ** 4.0.0 或更高版本 **
 *  已测试的最高版本为 **4.3.34**
 *  语言
 * [English (US)](https://wordpress.org/plugins/disable-users/)
 * 标签
 * [disable](https://cn.wordpress.org/plugins/tags/disable/)[login](https://cn.wordpress.org/plugins/tags/login/)
   [users](https://cn.wordpress.org/plugins/tags/users/)
 *  [高级视图](https://cn.wordpress.org/plugins/disable-users/advanced/)

## 评级

 4.7 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ Jared Atchison ](https://profiles.wordpress.org/jaredatch/)

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=AD8KTWTTDX9JL)