bp_core_remove_data( int $user_id )
Delete last_activity data for the user when the user is deleted.
Description
Parameters
- $user_id
-
(Required) The user ID for the user to delete usermeta for.
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(); }
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.