Title: Repaired by the author
Last modified: September 13, 2021

---

# Repaired by the author

 *  [dmitrasinovic](https://wordpress.org/support/users/dmitrasinovic/)
 * (@dmitrasinovic)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/doesnt-work-2706/)
 * 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
    -  This topic was modified 4 years, 9 months ago by [dmitrasinovic](https://wordpress.org/support/users/dmitrasinovic/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Ren Ventura](https://wordpress.org/support/users/renventura/)
 * (@renventura)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/doesnt-work-2706/#post-14858713)
 * 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]');
       }
       ```
   
 *  Thread Starter [dmitrasinovic](https://wordpress.org/support/users/dmitrasinovic/)
 * (@dmitrasinovic)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/doesnt-work-2706/#post-14858783)
 * Thank you for your response and the code. I’ll try it and give you a feedback

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Repaired by the author’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-delete-user-accounts.svg)
 * [WP Delete User Accounts](https://wordpress.org/plugins/wp-delete-user-accounts/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-delete-user-accounts/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-delete-user-accounts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-delete-user-accounts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-delete-user-accounts/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [dmitrasinovic](https://wordpress.org/support/users/dmitrasinovic/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/doesnt-work-2706/#post-14858783)