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-user
plugin to the/wp-content/plugins/
directory - Activate the plugin through the 'Plugins' menu in WordPress or by running
wp plugin activate lock-bad-user
command in terminal. - Go to
Users > All Users
and you will see a new columnLock User
in the table. - You can lock any user by choosing
Locked
from the dropdown and then clicking onUpdate user
button at the end of the user settings page.