apply_filters( 'bp_core_pre_avatar_handle_upload', bool $value, array $file )

Filters whether or not to handle uploading.

Description

If you want to override this function, make sure you return false.

Parameters

$value

Whether or not to crop.

$file

Appropriate entry from $_FILES superglobal.

Source

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

Changelog

Changelog
Version Description
BuddyPress 1.2.4 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.