bp_disable_account_deletion( bool $default = false )

Are members able to delete their own accounts?


Description Description


Parameters Parameters

$default

(Optional) Fallback value if not found in the database. Default: true.

Default value: false


Top ↑

Return Return

(bool) True if users are able to delete their own accounts, otherwise false.


Top ↑

Source Source

File: bp-core/bp-core-options.php

function bp_disable_account_deletion( $default = false ) {

	/**
	 * Filters whether or not members are able to delete their own accounts.
	 *
	 * @since 1.6.0
	 *
	 * @param bool $value Whether or not members are able to delete their own accounts.
	 */
	return apply_filters( 'bp_disable_account_deletion', (bool) bp_get_option( 'bp-disable-account-deletion', $default ) );
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.