• Resolved pickme

    (@pickme)


    Hi Sanjeev,

    The filter shown below to remove ‘delete account feature’ within woocommerce’s users’ control panel does not seem to work:

    add_filter( 'wpfda_disable_delete_account_tab', '__return_true');

    Could you please look into it?

    Thank you

    • This topic was modified 4 years, 7 months ago by pickme.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Sanjeev Aryal

    (@sanzeeb3)

    Hi @pickme,

    There seems to be some issue with this filter. The fix will be included on the next version. In the meantime, you can use WooCommerce built-in filter.

    add_filter( 'woocommerce_account_menu_items', function( $items ) {
    	unset( $items['wpf-delete-account'] );
    	return $items;
    } );

    I hope this helps!

    Thread Starter pickme

    (@pickme)

    Hi Sanjeev,

    In the meantime I added this filter as a snippet and works indeed. When you update I should probably use previous filter.

    Regards,
    Thank you!

    Plugin Author Sanjeev Aryal

    (@sanzeeb3)

    Hi @pickme – This should be fixed with version 1.3+.

    Have a good one!

    Thread Starter pickme

    (@pickme)

    Hi @sanzeeb3

    Thank you for the update.

    Regards!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove ‘delete feature’ from Woocommerce’s users’ control panel’ is closed to new replies.