An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

Disable User Login
======================
[![Build Status](https://img.shields.io/travis/saintsystems/disable-user-login/master.svg?style=flat-square)](https://travis-ci.org/saintsystems/disable-user-login)
[![WordPress tested](https://img.shields.io/wordpress/v/disable-user-login.svg?style=flat-square)](https://wordpress.org/plugins/disable-user-login/)
[![WordPress Plugin version](https://img.shields.io/wordpress/plugin/v/disable-user-login.svg?style=flat-square)](https://wordpress.org/plugins/disable-user-login/)
[![WordPress Plugin Downloads](https://img.shields.io/wordpress/plugin/dt/disable-user-login.svg?style=flat-square)](https://wordpress.org/plugins/disable-user-login/)
[![WordPress Plugin Active Installs](https://img.shields.io/wordpress/plugin/installs/disable-user-login.svg?style=flat-square)](https://wordpress.org/plugins/disable-user-login)
[![WordPress Plugin Rating](https://img.shields.io/wordpress/plugin/r/disable-user-login.svg?style=flat-square)](https://wordpress.org/plugins/wdisable-user-login/)
[![License](https://img.shields.io/badge/license-GPLv3-red.svg?style=flat-square)](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).