It has always been so easy to register but not to unregister. Let users delete their account from the frontend with WP Frontend Delete Account Plugin.
Installation and setup:
- Download WP Frontend Delete Account
- Upload the plugin to the WordPress or install the plugin directly from the admin panel.
- Activate it.
- For WooCommerce sites, ‘Delete Account’ tab will appear in the myaccount page which allows users to delete their account. If you have not already added a myaccount page, You can add a myaccount page for WooCommerce with shortcode [woocommerce_my_account]. That’s it.
- For non-store sites, add the ‘Delete Account’ tab content anywhere with shortcode [wp_frontend_delete_account] or with the built-in Gutenberg block.
Settings and Security:
You might want only the authenticated users to delete their account. The plugin comes with three different security measures before deleting the account.
- Password Confirmation: This option forces users to enter their current password before deleting their account.
- Custom Captcha: Custom Captcha makes it easy to create a custom question and answer or Math Captcha field before deleting their account.
- Reassign Contents: The plugin comes with an option to reassign the posts by the deleted user to any other users. So, that you’ll not miss some important data created by the user after deleting the account.
I see page not found while clicking delete account tab?
- You might need to refresh the permalinks. Navigate to Settings->Permalinks and Save.
I accidentally deleted my own account. I am the owner of the site.
- Unfortunately, there is not any way to recover the deleted user. To create a new user and get access to the site to follow: This Great Tutorial
Did you know? You can force user to logout with WPForce Logout plugin
Don’t bury your thoughts, put your vision into reality ~ Bob Marley