跳至主要內容
WordPress.org

Taiwan 正體中文

  • 佈景主題目錄
  • 外掛目錄
  • 最新消息
  • 技術支援
  • 關於我們
  • 團隊
  • 取得 WordPress
取得 WordPress
WordPress.org

Plugin Directory

Disable User Login

  • 提交外掛
  • 我的最愛
  • 登入
  • 提交外掛
  • 我的最愛
  • 登入
Image
Image

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.

Upgrade to Pro

Disable User Login Pro adds powerful tools for managing user accounts at scale:

  • CSV Import & Export — bulk enable or disable hundreds of users at once via spreadsheet
  • Email Notifications — automatically notify users when their account is disabled or re-enabled, with customizable email templates, merge tags, and optional admin CC
  • Audit Log — full history of every disable/enable action with timestamps, who performed it, and why
  • Filterable User List — “Disabled” and “Enabled” filter views on the Users screen with count badges and a sortable Disabled column

Perfect for membership sites, nonprofits managing volunteers, agencies onboarding/offboarding clients, and universities managing student accounts.

Learn more about Disable User Login Pro

螢幕擷圖

Disable User Login Pro — Filterable "Disabled" and "Enabled" views on the Users screen with count badges and sortable column.
Disable User Login Pro — Filterable “Disabled” and “Enabled” views on the Users screen with count badges and sortable column.
Message shown to disabled users when they try to login.
Message shown to disabled users when they try to login.
Disable User Login Pro — Export all users to CSV with enabled/disabled status.
Disable User Login Pro — Export all users to CSV with enabled/disabled status.
Disable User Login Pro — Import CSV to bulk enable or disable user accounts.
Disable User Login Pro — Import CSV to bulk enable or disable user accounts.
Disable User Login Pro — Customizable email notifications for disable/enable events with merge tags.
Disable User Login Pro — Customizable email notifications for disable/enable events with merge tags.
Disable User Login Pro — Audit log with timestamps, performer, reason, source, and CSV export.
Disable User Login Pro — Audit log with timestamps, performer, reason, source, and CSV export.

安裝方式

  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! You can customize the disabled user message in two ways:

  1. Admin Panel (Easy): Go to Settings > Disable User Login in your WordPress admin to customize the message via a user-friendly interface.
  2. Filter Hook (Advanced): Use the disable_user_login.disabled_message filter in your theme or plugin code for programmatic customization.

Support

Please visit the Disable User Login support forum on WordPress.org for basic support and help from other users. Since this is a free plugin, we respond to these as we have time.

Priority support is available for Disable User Login Pro customers.

使用者評論

Image

Super Easy to Use

Adam 2026 年 5 月 14 日
Easy to use, and just works on activation. I can look at the list of site users, and click the “Disable” link to disable a user. In the user listing, there is a new column noting which users are disabled. Very handy!
Image

Bon plugin

nerkur 2026 年 4 月 3 日 3 則留言
Il fait ce qu’il doit faire et fonctionne très bien. La seule chose que je rajouterais c’est un système pour trier les comptes par statut (activer-désactiver) dans la liste des comptes.
Image

Excellent!

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

Works as expected!

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

Works very well!

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

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.
閱讀全部 6 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Disable User Login〉的開發相關工作。

參與者
  • Image Saint Systems
  • Image Adam Anderly

〈Disable User Login〉外掛目前已有 2 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Disable User Login〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄。

變更記錄

2.1.7 – Apr 3, 2026

  • Fix: bump tested up to WordPress 6.9.4

2.1.6 – Apr 3, 2026

  • Fix: shorten plugin description to fit 150 character limit

2.1.5 – Apr 3, 2026

  • Fix: update plugin description to be more descriptive

2.1.4 – Apr 3, 2026

  • Fix: remove icon.svg so WordPress.org uses animated GIF icons

2.1.3 – Apr 3, 2026

  • Fix: update plugin banner and icon assets

2.1.2 – Apr 2, 2026

  • Fix: widen Disabled column to prevent sort indicator wrapping

2.1.1 – Apr 2, 2026

  • Fix: bump column filter priority and add multisite column hook

2.1.0 – Apr 2, 2026

  • Feature: add pro upsell on plugin row, settings page, and readme
  • Feature: add tabbed settings page with hooks for pro plugin

2.0.0 – Apr 2, 2026

  • Minimum requirements raised from PHP 5.6 to 7.4 and WordPress 4.7 to 6.2.
  • Feature: add PHP 7.4+ and WP 6.2+ compatibility checks

1.3.12

  • Fix inconsistent user meta retrieval #15
  • Bump tested up to WP 6.8.2

1.3.11

  • Add custom message settings page – users can now customize the disabled account message via the WordPress admin panel (Settings > Disable User Login).
  • Maintain backward compatibility with existing filter hooks.

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.

中繼資料

  • 版本 2.1.7
  • 最後更新 3 個月前
  • 啟用安裝數 5,000+
  • WordPress 版本需求 6.2 或更新版本
  • 已測試相容的 WordPress 版本 6.9.4
  • PHP 版本需求 7.4 或更新版本
  • 語言

    English (US)、Italian、及 Swedish.

    將這個外掛本地化為你的母語版本

  • 標籤:
    accountdisableloginuserusers
  • 進階檢視

評分

5 星,滿分為 5 星
  • 6 個 5 星使用者評論 5 星 6
  • 0 個 4 星使用者評論 4 星 0
  • 0 個 3 星使用者評論 3 星 0
  • 0 個 2 星使用者評論 2 星 0
  • 0 個 1 星使用者評論 1 星 0

Your review

查看全部使用者評論

參與者

  • Image Saint Systems
  • Image Adam Anderly

技術支援

最近 2 個月解決的問題:

總計 2 個問題,已解決 0 個

檢視技術支援論壇

贊助

想要支援這個外掛的發展嗎?

贊助這個外掛

  • 關於我們
  • 最新消息
  • 主機代管
  • 隱私權
  • 展示網站
  • 佈景主題目錄
  • 外掛目錄
  • 區塊版面配置目錄
  • Learn
  • 技術支援
  • 開發者資源
  • WordPress.tv ↗
  • 共同參與
  • 活動
  • 贊助基金會 ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Taiwan 正體中文

  • 查看我們的 X (之前的 Twitter) 帳號
  • 造訪我們的 Bluesky 帳號
  • 造訪我們的 Mastodon 帳號
  • 造訪我們的 Threads 帳號
  • 造訪我們的 Facebook 粉絲專頁
  • Visit our Instagram account
  • Visit our LinkedIn account
  • 造訪我們的 TikTok 帳號
  • Visit our YouTube channel
  • 造訪我們的 Tumblr 帳號
程式碼,如詩
The WordPress® trademark is the intellectual property of the WordPress Foundation.
Image
Image
Advertisement
Advertisement