Hello Rainer, and thanks for your question.
I would first try going to the Settings -> Delete Me subpanel, check the WordPress “Customer” role, and click Save Changes.
Are you trying to use the [plugin_delete_me /]
shortcode?
If so, which Woocommerce page (e.g. My account page) are you trying to use the shortcode on?
If you’re not using the shortcode, you will not see the link because Woocommerce bypasses the default WordPress profile page.
You may have a WordPress page set up as your Woocommerce “My account page” which contains the shortcode [woocommerce_my_account /]
. If so, you could add the Delete Me shortcode into that page too. However, doing so will add the delete link to every page within the my account area. Not pretty.
If you would like to use the shortcode to place the delete link at the bottom of your Woocommerce “Account Details” page, then follow these steps. I just tested them with the latest versions of WordPress and Woocommerce.
Disclaimer: Anyone following these instructions does so at his or her own risk.
- Copy the
form-edit-account.php
file that resides in the wp-content/plugins/woocommerce/templates/myaccount
folder.
- Navigate to the
wp-content/themes
folder and open the folder for your current active theme.
- Inside your current active theme folder, create a new folder named
woocommerce
- Then, inside the new
woocommerce
folder, create another folder named myaccount
and paste the previously copied form-edit-account.php
file into that folder.
- Finally, edit the
form-edit-account.php
file by placing a new line at the bottom of that file that reads <?php echo do_shortcode( '[plugin_delete_me /]' ); ?>
- That’s it! If for some reason it doesn’t show up, try clearing your browser cache.
-
This reply was modified 6 years, 7 months ago by cmc3215.