xprofile_remove_data( int $user_id )
When a user is deleted, we need to clean up the database and remove all the profile data from each table. Also we need to clean anything up in the usermeta table that this component uses.
Description
Parameters
- $user_id
-
(Required) The ID of the deleted user.
Source
File: bp-xprofile/bp-xprofile-functions.php
function xprofile_remove_data( $user_id ) { BP_XProfile_ProfileData::delete_data_for_user( $user_id ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.0.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.