[wordpress插件] Disable User Login禁用用户登录

wordpress 插件 文章 2020-04-18 15:20 410 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

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

    此插件位于GitHub上! 提取请求

    are welcome.

    受欢迎的。

    If possible please report issues through Github.

    如有可能,请通过Github报告问题。

安装步骤

    1. Upload or extract the disable-user-login folder to your site’s /wp-content/plugins/ directory.

    2. disable-user-login 文件夹上载或提取到您站点的 / wp-content / plugins / 目录中。

      You can also use the Add new option found in the Plugins menu in WordPress.

    3. 您还可以使用WordPress的插件菜单中的添加新选项。

    4. Enable the plugin from the Plugins menu in WordPress.
    5. 从WordPress的 Plugins 菜单中启用插件。

    Usage

    用法

      1. Edit any user and then look for the “Disable User Account” checkbox.
      2. 编辑任何用户,然后查找“禁用用户帐户”复选框。

      3. Bulk Disable/Enable user accounts by selecting one or more user accounts and then choosing Enable or Disable from the bulk actions menu.
      4. 通过选择一个或多个用户帐户,然后从批量操作菜单中选择启用禁用

      5. 批量禁用/启用用户帐户。

下载地址
https://downloads.wordpress.org/plugin/disable-user-login.1.2.0.zip
-EOF-

AI助手支持GPT4.0