https://github.com/saintsystems/disable-user-login
Disable User Login
https://github.com/saintsystems/disable-user-login
disable-login login user-login wordpress wordpress-plugin wordpress-user
Last synced: 7 days ago
JSON representation
Disable User Login
- Host: GitHub
- URL: https://github.com/saintsystems/disable-user-login
- Owner: saintsystems
- License: gpl-3.0
- Created: 2019-08-13T16:04:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-09-08T14:13:27.000Z (5 months ago)
- Last Synced: 2025-10-14T19:23:42.050Z (4 months ago)
- Topics: disable-login, login, user-login, wordpress, wordpress-plugin, wordpress-user
- Language: PHP
- Size: 121 KB
- Stars: 16
- Watchers: 6
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Disable User Login
======================
[](https://travis-ci.org/saintsystems/disable-user-login)
[](https://wordpress.org/plugins/disable-user-login/)
[](https://wordpress.org/plugins/disable-user-login/)
[](https://wordpress.org/plugins/disable-user-login/)
[](https://wordpress.org/plugins/disable-user-login)
[](https://wordpress.org/plugins/wdisable-user-login/)
[](http://opensource.org/licenses/GPL-3.0)
Disable User Login provides the ability to disable user accounts and prevent them from logging in.
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.
Installation
------------
Here's a [guide on how to install the plugin on your WordPress site](https://wordpress.org/plugins/disable-user-login/installation/).
If you want to run the latest development version, you have two options:
* You can download the repository .zip file: [disable-user-login.zip](https://github.com/saintsystems/disable-user-login/archive/master.zip)
* You can clone the GitHub repository using Git `git clone https://github.com/saintsystems/disable-user-login.git disable-user-login
This will download the latest development version of the Disable User Login plugin. While this version is usually stable, it is not recommended for use in a production environment.
Customize Disabled User Message
------------
You can customize the message users see when their accounts are disabled by hooking into the `disable_user_login.disabled_message` hook exposed by the plugin or by providing a translation in your languages file.
```php
add_filter( 'disable_user_login.disabled_message', function( $disabled_message ) {
// Defaults to: __( 'ERROR: Account disabled.', 'disable-user-login' )
$disabled_message = 'ERROR: Get outta here!';
return $disabled_message;
}, 10, 1 );
```
Bugs
----
If you think you've found a bug, [please raise an issue here](https://github.com/saintsystems/disable-user-login/issues?state=open).
Documentation & Support
-------
This is a developer's portal for the Disable User Login plugin and should not be used for support. Please visit the
[Disable User Login support forum on WordPress.org](https://wordpress.org/support/plugin/disable-user-login) for basic support and help from other users. Since this is a free plugin, we respond to these as we have time.
Online documentation and code samples are available via our [Help Center](https://support.saintsystems.com/hc/en-us/sections/201959566).
Priority support is available for [Disable User Login Pro](https://www.saintsystems.com/products/disable-user-login-pro/) customers.
Contributions
-------------
Anyone is welcome to contribute to the plugin. There are various ways you can contribute:
* [Raise an issue](https://github.com/saintsystems/disable-user-login/issues) on GitHub.
* Send us a Pull Request with your bug fixes and/or new features.
* Provide feedback and [suggestions on enhancements](https://github.com/saintsystems/disable-user-login/issues?direction=desc&labels=Enhancement&page=1&sort=created&state=open).
Credits
-------
- [Adam Anderly](https://github.com/anderly)
- [Saint Systems](https://github.com/saintsystems)
- Originally based on [disable users](https://github.com/jaredatch/Disable-Users) by [Jared Atchison](https://github.com/jaredatch).