apply_filters( 'bp_avatar_is_front_edit', bool $retval )

Use this filter if you need to : – Load the avatar UI for a component that is !groups or !user (return true regarding your conditions) – Completely disable the avatar UI introduced in 2.3 (eg: __return_false())

Description

Parameters

$retval

(bool) Whether or not to load the Avatar UI.

Source

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

Changelog

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