bp_core_remove_data( int $user_id )

Delete last_activity data for the user when the user is deleted.


Parameters Parameters

$user_id

(int) (Required) The user ID for the user to delete usermeta for.


Source Source

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

function bp_core_remove_data( $user_id ) {

	// Remove last_activity data.
	BP_Core_User::delete_last_activity( $user_id );

	// Flush the cache to remove the user from all cached objects.
	wp_cache_flush();
}


Top ↑

Changelog 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.