bp_core_check_avatar_size( array $file )
Is the file size of the current avatar upload permitted?
Description Description
Parameters Parameters
- $file
-
(Required) The $_FILES array.
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; }
Changelog Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |