With this plugin you can block any bad users without deleting the account and then any time you want you can unlock the user.
- Upload
lock-bad-userplugin to the/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress or by running
wp plugin activate lock-bad-usercommand in terminal. - Go to
Users > All Usersand you will see a new columnLock Userin the table. - You can lock any user by choosing
Lockedfrom the dropdown and then clicking onUpdate userbutton at the end of the user settings page.