Support » Plugin: WP Delete User Accounts » Repaired by the author

  • 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ren Ventura

    (@renventura)

    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

    (@dmitrasinovic)

    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)
  • You must be logged in to reply to this review.