bp_core_check_avatar_size( array $file )

Is the file size of the current avatar upload permitted?

Description

Parameters

$file

(array) (Required) The $_FILES array.

Return

(bool) True if the avatar is under the size limit, otherwise false.

Source

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

function bp_core_check_avatar_size( $file ) {
	if ( $file['file']['size'] > bp_core_avatar_original_max_filesize() )
		return false;

	return true;
}

Changelog

Changelog
Version Description
BuddyPress 1.0.0 Introduced.

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.