BP_REST_Account_Settings_Options_Endpoint::get_delete_account_fields()
Get Fields for the Delete Account “Delete Account”.
Description
- From: ‘members/single/settings/delete-account’
Return
(array|mixed|void)
Source
File: bp-settings/classes/class-bp-rest-account-settings-options-endpoint.php
public function get_delete_account_fields() { $fields = array( array( 'name' => 'delete-account-understand', 'label' => __( 'I understand the consequences.', 'buddyboss' ), 'field' => 'checkbox', 'value' => '', 'options' => array(), 'group_label' => '', ), array( 'name' => 'member-delete-account', 'label' => __( 'Delete Account', 'buddyboss' ), 'field' => 'button', 'value' => '', 'options' => array(), 'group_label' => '', ), ); $fields = apply_filters( 'bp_rest_account_settings_delete_account', $fields ); return $fields; }
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.