In order to get used to Github instead of SVN for plugin development, I’ve created a small, simple plugin which hopefully some of you may find useful.
It’s called ZP Disable Users, and it does exactly what the name suggests. You can temporarily (or permanently!) disable any user account, which will prevent future logins and also terminate the current session for that user.
Disabled status is shown on the admin users page, and enabling/disabling is done by editing a user.
There’s a settings page where you can customise the meta name used in the usermeta table, and also you can determine whether anyone with the edit_users capability can disable/enable users, or whether only administrators can.
It’s a work in progress (I haven’t even worked out how to make a release zip yet!!), and I intend to integrate CodePotent’s Update Manager in due course (again, as a learning experience). I’m using the convention zp-pluginname/zp-pluginname.php for naming all my CP plugins.
It’s designed for ClassicPress but will work with WordPress as well. However I have no plans to add it to the WordPress repo.
So help yourself if you think it will be useful to you! Right now there’s no documentation or support, but that will come in time, as will a proper release URL.