I’m able to confirm the plugin works with WordPress 5.8.1. Also, if you’re customer accounts are using WooCommerce, I was able to confirm the plugin works with WooCommerce 5.6.0.
By default, though, you have to “enable” the plugin to work with WooCommerce. You can do so with the following code snippet (add to your theme’s functions.php file).
add_filter( 'wp_delete_user_accounts_load_assets_on_frontend', 'wp_delete_user_accounts_load_assets_on_woocommerce_edit_account' );
/**
* Add the WP Delete User Accounts CSS and JS files to the WooCommerce edit-account endpoint
*
* @param boolean $load Whether the assets are to be loaded (by default, will only load when post content has the [wp_delete_user_accounts] shortcode)
*
* @return boolean
*/
function wp_delete_user_accounts_load_assets_on_woocommerce_edit_account( $load ) {
return is_wc_endpoint_url( 'edit-account' ) ? true : $load;
}
add_action( 'woocommerce_after_edit_account_form', 'wp_delete_user_accounts_delete_button_after_edit_account' );
/**
* Output the WP Delete User Accounts delete button after the edit-account form in WooCommerce
* @author Ren Ventura <renventura.com>
*/
function wp_delete_user_accounts_delete_button_after_edit_account() {
echo do_shortcode('[wp_delete_user_accounts]');
}