WP Delete User Accounts

Plugin Banner

WP Delete User Accounts

by Ren Ventura

Download
Description

Allow your users (except for administrators) to manually delete their own accounts. It uses the Sweet Alert jQuery plugin for slick-looking alerts and prompts.

By default, this plugin adds a button to a user’s profile page in the wp-admin. You can also add a delete button to any page or post using the [wp_delete_user_accounts] shortcode.

NOTE: Delete buttons are not displayed when logged in as an administrator. This is done to protect against locking yourself out of your site. To see the delete button, you’ll need to log in with an account that does not have the administrator role.

For more technical info, including available hooks (actions and filters), please see the plugin’s readme file on Github.

Automatically

  1. Search for WP Delete User Accounts in the Add New Plugin section of the WordPress admin.
  2. Install and activate.

Manually

  1. Download the zip file, decompress the file and upload the main plugin folder to the /wp-content/plugins/ directory.
  2. Activate the plugin.
  1. <p>"Delete My Account" button is shown on the edit-profile page, and can be displayed on the front-end via a shortcode.</p>

    "Delete My Account" button is shown on the edit-profile page, and can be displayed on the front-end via a shortcode.

  2. <p>Confirm account deletion prompt.</p>

    Confirm account deletion prompt.

  3. <p>Processing account deletion.</p>

    Processing account deletion.

  4. <p>Account deleted successfully.</p>

    Account deleted successfully.

Confirmation Email

By bobwines on May 17, 2023

Hello, It's possible receive a confirmation email that notifies the admin that a user has been deleted?

Many thanks for your support!!

Repaired by the author

By dmitrasinovic on September 13, 2021

Edit - prompt repair of the plugin by the author and it is now fully functional on WordPress 5.8.1 Previously I gave one star because it wasn't working: Doesn't work on WordPress 5.8.1 I've tried it on 2 of my websites, it doesn't place a delete button on Customer accounts

Spelling

By petetash on December 6, 2020

Hi there, just passing through and noticed a misspelling. In English the salutation is 'Farewell',or 'Fare well', not 'Fair well'. Edit: On reading further I guess people can set their own messages referencing the other plugin you mention

Marche bien !

By eoliane on December 6, 2019

Super plugin simple et efficace.

straight coding for a major missing WP feature

By Anonymous User 14293447 (anonymized_14293447) on May 1, 2019

This plugin beats all others (are there really any?) for this highly needed feature. The code is so simple to understand even a non-developer like me was able to customize a few things. The active support from the author has also guided me through.

Works nice, lightweight

By hartv on February 15, 2019

It works very nice, does the job well and lightweight. Modification requires some CSS skills, there is no gui for this unfortunately.

Funciona perfecto, imprescindible para el RGPD

By Fernando Tellado (fernandot) on January 15, 2018

Funciona perfecto, pide confirmación del borrado y lo hace sin problemas, redirigiendo luego al usuario a la web. Desde mayo de 2018 obligatorio ofrecer esto en toda web o e-commerce debido al RGPD de la Unión Europea.

1.2.4

  • Fixed unescaped shortcode label
  • WP Tested Up To 6.7

1.2.3

  • WP Tested Up To 6.0

1.2.2

  • Remove wp_logout(), which was causing processing to get stuck
  • Use $.ajax() instead of $.post()

1.2.1

  • Made the DELETE text (for confirming account deletion) translatable

1.2

  • Added filter for modifying script localization variables (e.g. the redirect URL)

1.1.1

  • Updated translatable strings

1.1

  • Added filter for loading CSS and JS assets anywhere on the frontend (e.g. within WooCommerce templates).

1.0.3

  • Changed plugin text domain to dirname instead of basename to remove .php extension from path

1.0.2

  • Add POT file for translations

1.0.1

  • Fixed dependency array on enqueues

1.0

  • Initial version
Back to top