bp_admin_setting_callback_account_deletion

Allow members to delete their accounts setting field.

Description

bp_admin_setting_callback_account_deletion(); 

Usage

  1. if ( !function_exists( 'bp_admin_setting_callback_account_deletion' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/admin/bp-core-admin-settings.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_admin_setting_callback_account_deletion(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-core/admin/bp-core-admin-settings.php  
  1. function bp_admin_setting_callback_account_deletion() { 
  2. ?> 
  3.  
  4. <input id="bp-disable-account-deletion" name="bp-disable-account-deletion" type="checkbox" value="1" <?php checked( !bp_disable_account_deletion( false ) ); ?> /> 
  5. <label for="bp-disable-account-deletion"><?php _e( 'Allow registered members to delete their own accounts', buddypress ); ?></label> 
  6.  
  7. <?php