How to Allow Users to Delete Their WordPress Accounts
First, you need to install and activate the Delete Me plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.
Upon activation, head over to the Settings » Delete Me page from the WordPress admin sidebar to configure the plugin settings.
From here, you can start by checking the boxes next to the user roles that can delete their accounts.
For example, if you want authors to be able to delete their own accounts, then you can check the box next to that option.
Next, scroll down to the ‘Your Profile’ section to choose link styling and text that the user roles will see on their profile page.
For example, you can add a heading, a warning message, and a URL for the page that users will be redirected to upon deleting their accounts.
After that, scroll down to the ‘Miscellaneous’ section on the page.
From here, you can check the ‘Delete Comments’ option if you want the comments added by the user to be automatically deleted from your website upon account deletion.
You can also check the ‘E-mail Notification’ option if you want to receive an email with account deletion details every time a user deletes their account.
Keep in mind that this email will be sent to the administrator’s email address.
Finally, click the ‘Save Changes’ button to store your settings.
Now you will need to switch to a user account with the user roles you selected earlier.
Once logged in, go ahead and visit the Profile page, and you will see a new section where users can click to delete their account.
When a user clicks on the link, they will be shown a warning that deleting an account will delete their access and all their content.
Once the user agrees, this plugin will proceed and delete their account.
Views: 0