MyAccountTag.php
1 month ago
account-settings.tmpl.php
3 years ago
billing-details.tmpl.php
1 year ago
change-password.tmpl.php
1 year ago
dashboard.tmpl.php
3 years ago
delete-account.tmpl.php
1 year ago
downloads.tmpl.php
1 year ago
edit-profile.tmpl.php
1 year ago
email-notifications.tmpl.php
3 years ago
index.php
5 years ago
orders.tmpl.php
3 years ago
subscriptions.tmpl.php
1 year ago
view-order.tmpl.php
1 year ago
view-subscription.tmpl.php
1 year ago
delete-account.tmpl.php
40 lines
| 1 | <?php |
| 2 | |
| 3 | if ( ! defined('ABSPATH')) { |
| 4 | exit; // Exit if accessed directly |
| 5 | } |
| 6 | |
| 7 | $current_user = get_user_by('id', get_current_user_id()); |
| 8 | |
| 9 | do_action('ppress_myaccount_delete_account_before'); |
| 10 | |
| 11 | ?> |
| 12 | <div class="profilepress-myaccount-delete-account"> |
| 13 | |
| 14 | <h2><?= esc_html__('Delete Account', 'wp-user-avatar') ?></h2> |
| 15 | |
| 16 | <p><?php esc_html_e('Are you sure you want to delete your account? This will erase all of your account data from the site. To delete your account enter your password below.', 'wp-user-avatar') ?></p> |
| 17 | |
| 18 | <form method="post" id="ppmyac-form-deleteAccount"> |
| 19 | |
| 20 | <div class="profilepress-myaccount-form-wrap"> |
| 21 | |
| 22 | <div class="profilepress-myaccount-form-field"> |
| 23 | <label for="password_new"><?= esc_html__('Password', 'wp-user-avatar') ?></label> |
| 24 | <input type="password" name="password" id="password_new" required="required" class="profilepress-myaccount-form-control"> |
| 25 | </div> |
| 26 | |
| 27 | <div class="profilepress-myaccount-form-field"> |
| 28 | <input name="submit-form" id="submit-form" type="submit" value="<?= esc_html__('Delete Account', 'wp-user-avatar') ?>"> |
| 29 | </div> |
| 30 | </div> |
| 31 | |
| 32 | <input type="hidden" name="ppmyac_form_action" value="deleteAccount"> |
| 33 | <?= ppress_nonce_field(); ?> |
| 34 | </form> |
| 35 | |
| 36 | </div> |
| 37 | <?php |
| 38 | |
| 39 | do_action('ppress_myaccount_delete_account'); |
| 40 |