locker命令_如何使用User Locker禁用或锁定WordPress中的用户帐户

locker命令

Recently while working on a client’s site, we had to disable a user account in WordPress. Basically, some of their writers were no longer with the company. They did not want to delete the user because it would require re-assigning the posts to another user. Doing that would basically strip away the original author’s credit and assign it to someone else which is obviously not fair. We are certain that bloggers who give access to one-time guest authors sometimes run into the same issue. So how should you deal with this situation? In this article, we will show you how to disable or lock a user account in WordPress with User Locker.

最近,在客户网站上工作时,我们不得不禁用WordPress中的用户帐户。 基本上,他们的一些作家不再在公司工作。 他们不想删除该用户,因为这将需要将帖子重新分配给另一个用户。 这样做基本上会剥夺原始作者的信誉并将其分配给其他人,这显然是不公平的。 我们可以肯定,授予一次性访客作者访问权限的博客作者有时也会遇到同一问题。 那么,您应该如何应对这种情况呢? 在本文中,我们将向您展示如何使用User Locker禁用或锁定WordPress中的用户帐户。

更改密码方式 (Change the Password Approach)

The first thing that would come to mind is change the password. Now the user can never access the site right? Well not exactly. They can always reset the password, so you would have to change their email address. WordPress requires a unique email for each user. So while this method would work, it is not the most efficient method.

首先想到的是更改密码。 现在用户永远无法访问该网站了吗? 好吧,不完全是。 他们可以随时重置密码,因此您必须更改他们的电子邮件地址。 WordPress需要为每个用户提供唯一的电子邮件。 因此,尽管此方法可行,但它不是最有效的方法。

用户储物柜 (User Locker)

We found a plugin called User Locker which lets you lock or disable the account. Let’s install and activate the plugin. Once you have activated it, a new menu option will be added: Settings » User Locker.

我们找到了一个名为User Locker的插件,可让您锁定或禁用该帐户。 让我们安装并激活插件。 激活后,将添加一个新菜单选项:“设置”»“用户储物柜”。

This has the default settings. Unlike the Limit Login Attempts plugin which bans the IP for a specified period of time, this plugin has the option to lock the account indefinitely.

这是默认设置。 与“ 限制登录尝试”插件在指定的时间段内禁止IP不同,该插件可以选择无限期锁定帐户。

User Locker Settings

Now the real useful part comes in when you go to edit a user. Click on the Users tab and edit any user. You will see new fields called User Locking. This lets you manually disable or lock any user account. You can also store reasons for disabling or locking. If you use the @ sign then, it stores it as a private reason.

现在,真正有用的部分出现在您去编辑用户时。 单击用户选项卡,然后编辑任何用户。 您将看到称为“用户锁定”的新字段。 这使您可以手动禁用或锁定任何用户帐户。 您还可以存储禁用或锁定的原因。 如果使用@符号,则将其存储为私人原因。

User Locker Profile Page Settings

Once a disabled user tries to login to your WordPress account, they will see an error message like this:

一旦禁用用户尝试登录您的WordPress帐户,他们将看到如下错误消息:

User Locker Login Page Screenshot

This is a pretty handy plugin. If you have other methods of locking or disabling user accounts in WordPress, then please let us know.

这是一个非常方便的插件。 如果您还有其他锁定或禁用WordPress中用户帐户的方法,请告诉我们。

翻译自: https://www.wpbeginner.com/plugins/how-to-disable-or-lock-a-user-account-in-wordpress-with-user-locker/

locker命令

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值