apply_filters( 'bp_avatar_pre_handle_capture', bool $value, string $data, int $item_id )

Filters whether or not to handle avatar webcam capture.

Description

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

Parameters

$value

Whether or not to crop.

$data

Base64 encoded image.

$item_id

Item to associate.

Source

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

Changelog

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