apply_filters( 'bp_attachment_avatar_script_data', array $script_data, string $object )

Use this filter to override/extend the avatar script data.

Description

Parameters

$script_data

(array) The avatar script data.

$object

(string) The object the avatar belongs to (eg: user or group).

Source

File: bp-core/classes/class-bp-attachment-avatar.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.