WordPress.org

China 简体中文

  • 主题
  • 插件
  • 新闻
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress
WordPress.org

Plugin Directory

Disable User Login

  • 提交插件
  • 我的收藏
  • 登录
  • 提交插件
  • 我的收藏
  • 登录

Disable User Login

作者:Saint Systems
下载
  • 详情
  • 评价
  • 安装
  • 开发进展
支持

描述

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 user’s 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 want freelance writers to still show up in the authors box, but you don’t want them to be able to login.
  • You have former employees who have authored posts and you don’t want to delete them or reassign their posts to other users, but still need them to show up in the “Authors box.”
  • 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! Pull requests are welcome. If possible please report issues through Github.

安装

  1. Upload or extract the disable-user-login folder to your site’s /wp-content/plugins/ directory. You can also use the Add new option found in the Plugins menu in WordPress.
  2. Enable the plugin from the Plugins menu in WordPress.

Usage

  1. Edit any user and then look for the “Disable User Account” checkbox.
  2. Bulk Disable/Enable user accounts by selecting one or more user accounts and then choosing Enable or Disable from the bulk actions menu.

常见问题

Can I change the message a disabled user sees?

Yes, there is a filter in place for that, disable_user_login.disabled_message.

评价

Excellent!

Michael Milette 2024 年 3 月 9 日
Works well. No issues.

Works as expected!

Doru 2021 年 11 月 11 日
Nice plugin, clean and light weight code.

Works very well!

angrywarrior 2021 年 6 月 2 日
Works perfectly as described and is very light weight.

Works as advertised

Adam Anderly 2019 年 8 月 15 日
Easy to use plugin that allows you to disable user accounts to prevent them from logging in.
阅读所有4条评价

贡献者及开发者

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

贡献者
  • Saint Systems
  • Adam Anderly

「Disable User Login」插件已被翻译至 2 种本地化语言。 感谢所有译者为本插件所做的贡献。

帮助将「Disable User Login」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

更新日志

1.3.10

  • Bump tested WP version.

1.3.9

  • Fix bulk action nonce verification.

1.3.8

  • Improved user-specific nonce validation.

1.3.7

  • Add hooks for multisite.

1.3.6

  • Permission fix on quick links.
  • Translation updates.

1.3.5

  • Fix to disable application passwords (fixes #7).

1.3.4

  • Add user enable/disable quick links.

1.3.3

  • Bump WP tested version.

1.3.2

  • Static method to return user meta key
  • Fix some comments

1.3.1

  • Update to prevent disabling super admins on bulk disable.
  • Update to check user edit permission on bulk disable.
  • Updated to prevent current user from disabling his/her own account on bulk disable.

1.3.0

  • Force disabled users to logout.
  • Tested up to WP 5.7

1.2.1

  • Tested up to WP 5.6

1.2.0

  • Add action hooks when user accounts are enabled/disabled and when disabled user attempts to login.

1.1.0

  • Switch to authenticate filter for user login.
  • Multisite support.

1.0.1

  • Version bump.

1.0.0

  • Initial version.

额外信息

  • 版本 1.3.10
  • 最后更新:9 月前
  • 活跃安装数量 4,000+
  • WordPress 版本 4.7.0 或更高版本
  • 已测试的最高版本为 6.6.2
  • PHP 版本 5.6 或更高版本
  • 语言

    English (US) 、 Italian 和 Swedish.

    翻译成简体中文

  • 标签
    accountdisableloginuserusers
  • 高级视图

评级

5 星(最高 5 星)。
  • 4 条 5 星评价 5 星 4
  • 0 条 4 星评价 4 星 0
  • 0 条 3 星评价 3 星 0
  • 0 条 2 星评价 2 星 0
  • 0 条 1 星评价 1 星 0

添加我的评价

查看全部评论

贡献者

  • Saint Systems
  • Adam Anderly

支持

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

查看支持论坛

捐助

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

捐助此插件

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • WordPress.tv ↗︎
  • 参与
  • 活动
  • 捐赠 ↗
  • 未来五分计划
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

China 简体中文

  • 关注我们的 X(原 Twitter)账号
  • Visit our Bluesky account
  • Visit our Mastodon account
  • Visit our Threads account
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • Visit our TikTok account
  • 访问我们的 YouTube 频道
  • Visit our Tumblr account
代码如诗