bp_core_delete_avatar_on_user_delete( int $user_id )
Delete a user’s avatar when the user is deleted.
Description
Parameters
- $user_id
-
(Required) ID of the user who is about to be deleted.
Return
(bool) True on success, false on failure.
Source
File: bp-members/bp-members-functions.php
function bp_core_delete_avatar_on_user_delete( $user_id ) { return bp_core_delete_existing_avatar( array( 'item_id' => $user_id, 'object' => 'user', ) ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.9.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.