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.

Parameters Parameters


(int) (Required) The ID of the deleted user.

Source Source

File: bp-xprofile/bp-xprofile-functions.php

function xprofile_remove_data( $user_id ) {
	BP_XProfile_ProfileData::delete_data_for_user( $user_id );

Top ↑

Changelog Changelog

Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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