bp_core_check_avatar_size( array $file )

Is the file size of the current avatar upload permitted?

Parameters Parameters


(array) (Required) The $_FILES array.

Top ↑

Return Return

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

Source 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;

Top ↑

Changelog Changelog

Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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