bp_core_check_avatar_upload( array $file )

Is the current avatar upload error-free?

Description

Parameters

$file

(array) (Required) The $_FILES array.

Return

(bool) True if no errors are found. False if there are errors.

Source

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

function bp_core_check_avatar_upload( $file ) {
	if ( isset( $file['error'] ) && $file['error'] )
		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.