[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-legacy/buddypress/members/single/settings/ -> delete-account.php (source)

   1  <?php
   2  /**
   3   * BuddyPress - Members Settings Delete Account
   4   *
   5   * @package BuddyPress
   6   * @subpackage bp-legacy
   7   * @version 3.0.0
   8   */
   9  
  10  /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/settings/profile.php */
  11  do_action( 'bp_before_member_settings_template' ); ?>
  12  
  13  <div id="message" class="info">
  14  
  15      <?php if ( bp_is_my_profile() ) : ?>
  16  
  17          <p><?php _e( 'Deleting your account will delete all of the content you have created. It will be completely irrecoverable.', 'buddypress' ); ?></p>
  18  
  19      <?php else : ?>
  20  
  21          <p><?php _e( 'Deleting this account will delete all of the content it has created. It will be completely irrecoverable.', 'buddypress' ); ?></p>
  22  
  23      <?php endif; ?>
  24  
  25  </div>
  26  
  27  <form action="<?php echo bp_displayed_user_domain() . bp_get_settings_slug() . '/delete-account'; ?>" name="account-delete-form" id="account-delete-form" class="standard-form" method="post">
  28  
  29      <?php
  30  
  31      /**
  32       * Fires before the display of the submit button for user delete account submitting.
  33       *
  34       * @since 1.5.0
  35       */
  36      do_action( 'bp_members_delete_account_before_submit' ); ?>
  37  
  38      <label for="delete-account-understand">
  39          <input type="checkbox" name="delete-account-understand" id="delete-account-understand" value="1" onclick="if(this.checked) { document.getElementById('delete-account-button').disabled = ''; } else { document.getElementById('delete-account-button').disabled = 'disabled'; }" />
  40           <?php _e( 'I understand the consequences.', 'buddypress' ); ?>
  41      </label>
  42  
  43      <div class="submit">
  44          <input type="submit" disabled="disabled" value="<?php esc_attr_e( 'Delete Account', 'buddypress' ); ?>" id="delete-account-button" name="delete-account-button" />
  45      </div>
  46  
  47      <?php
  48  
  49      /**
  50       * Fires after the display of the submit button for user delete account submitting.
  51       *
  52       * @since 1.5.0
  53       */
  54      do_action( 'bp_members_delete_account_after_submit' ); ?>
  55  
  56      <?php wp_nonce_field( 'delete-account' ); ?>
  57  
  58  </form>
  59  
  60  <?php
  61  
  62  /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/settings/profile.php */
  63  do_action( 'bp_after_member_settings_template' );


Generated: Tue Dec 10 01:01:39 2019 Cross-referenced by PHPXref 0.7.1