bp_core_delete_avatar_on_user_delete( int $user_id )

Delete a user’s avatar when the user is deleted.


Parameters Parameters

$user_id

(int) (Required) ID of the user who is about to be deleted.


Top ↑

Return Return

(bool) True on success, false on failure.


Source 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',
	) );
}


Top ↑

Changelog Changelog

Changelog
Version Description
1.9.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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