bp_disable_avatar_uploads( bool $default = true )

Are members able to upload their own avatars?


Parameters Parameters

$default

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

Default value: true


Top ↑

Return Return

(bool) True if avatar uploads are disabled, otherwise false.


Source Source

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

function bp_disable_avatar_uploads( $default = true ) {

	/**
	 * Filters whether or not members are able to upload their own avatars.
	 *
	 * @since 1.6.0
	 *
	 * @param bool $value Whether or not members are able to upload their own avatars.
	 */
	return (bool) apply_filters( 'bp_disable_avatar_uploads', (bool) bp_get_option( 'bp-disable-avatar-uploads', $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.