apply_filters( 'bp_core_pre_delete_existing_avatar', bool $value, array $args )

Filters whether or not to handle deleting an existing avatar.


Description Description

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


Parameters Parameters

$value

Whether or not to delete the avatar.

$args

Array of function parameters.

  • 'item_id'
    (bool|int) ID of the item whose avatar you're deleting. Defaults to the current item of type $object.
  • 'object'
    (string) Object type of the item whose avatar you're deleting. 'user', 'group', 'blog', or custom. Default: 'user'.
  • 'avatar_dir'
    (bool|string) Subdirectory where avatar is located. Default: false, which falls back on the default location corresponding to the $object.


Top ↑

Source Source

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


Top ↑

Changelog Changelog

Changelog
Version Description
2.5.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.